feat(ipc): Add visibility commands
This commit is contained in:
parent
23a7717120
commit
b6c5563b0b
4 changed files with 70 additions and 4 deletions
src/components
|
@ -636,6 +636,12 @@ bool controller::on(const signals::ipc::command& evt) {
|
|||
enqueue(make_quit_evt(false));
|
||||
} else if (command == "restart") {
|
||||
enqueue(make_quit_evt(true));
|
||||
} else if (command == "hide") {
|
||||
m_bar->hide();
|
||||
} else if (command == "show") {
|
||||
m_bar->show();
|
||||
} else if (command == "toggle") {
|
||||
m_bar->toggle();
|
||||
} else {
|
||||
m_log.warn("\"%s\" is not a valid ipc command", command);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue