// Aseprite
// Copyright (C) 2017  David Capello
//
// This program is distributed under the terms of
// the End-User License Agreement for Aseprite.

#ifdef HAVE_CONFIG_H
  #include "config.h"
#endif

#include "app/commands/quick_command.h"

namespace app {

QuickCommand::QuickCommand(const char* id, std::function<void()> execute)
  : Command(id)
  , m_execute(execute)
{
}

QuickCommand::~QuickCommand()
{
}

void QuickCommand::onExecute(Context* context)
{
  m_execute();
}

} // namespace app
