Stand/Stand/CommandQuickCtxMin.hpp
2024-10-16 11:20:42 +08:00

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);
}
}
};
}