Stand/Stand/CommandQuickCtxMin.hpp

30 lines
444 B
C++
Raw Normal View History

2024-10-16 11:20:42 +08:00
#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);
}
}
};
}