Autoupdate config menu after config changes

This commit is contained in:
lupoDharkael
2017-07-31 22:41:08 +02:00
parent 3e7e6d1652
commit d9c6b603bb
9 changed files with 34 additions and 8 deletions

View File

@@ -32,8 +32,6 @@
Controller::Controller() : m_captureWindow(nullptr)
{
// required for the button serialization
qRegisterMetaTypeStreamOperators<QList<int> >("QList<int>");
qApp->setQuitOnLastWindowClosed(false);
// init tray icon
@@ -133,7 +131,9 @@ void Controller::enableTrayIcon() {
}
void Controller::disableTrayIcon() {
m_trayIcon->deleteLater();
if (m_trayIcon) {
m_trayIcon->deleteLater();
}
ConfigHandler().setDisabledTrayIcon(true);
}