feat(ipc): Add visibility commands

This commit is contained in:
Michael Carlberg 2017-04-21 18:15:18 +02:00
parent 23a7717120
commit b6c5563b0b
4 changed files with 70 additions and 4 deletions
src/components

View file

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