30 lines
444 B
C++
30 lines
444 B
C++
#pragma once
|
|
|
|
#include "CommandAction.hpp"
|
|
|
|
#include "ContextMenu.hpp"
|
|
|
|
namespace Stand
|
|
{
|
|
class CommandQuickCtxMin : public CommandAction
|
|
{
|
|
public:
|
|
explicit CommandQuickCtxMin(CommandList* const parent)
|
|
: CommandAction(parent, LOC("CTX_MIN"))
|
|
{
|
|
}
|
|
|
|
void onClick(Click& click) final
|
|
{
|
|
if (click.type == CLICK_MENU)
|
|
{
|
|
openHotkeysList(click.thread_context);
|
|
}
|
|
else
|
|
{
|
|
ContextMenu::doMin(click);
|
|
}
|
|
}
|
|
};
|
|
}
|