Commit 1eed4730 authored by Michael Pyne's avatar Michael Pyne

Don't try to start in docked mode without the systray.

It appears to be possible to configure JuK to start in docked mode even
if the system tray icon has been disabled by the user, which is quite
pointless.  Prevent this by forcing the window to be shown at startup if
the system tray icon is not turned on.
parent 3333b099
...@@ -111,7 +111,7 @@ int main(int argc, char *argv[]) ...@@ -111,7 +111,7 @@ int main(int argc, char *argv[])
juk->restore(1, false /* don't show */); juk->restore(1, false /* don't show */);
KConfigGroup config(KSharedConfig::openConfig(), "Settings"); KConfigGroup config(KSharedConfig::openConfig(), "Settings");
if(!config.readEntry("StartDocked", false)) { if(!config.readEntry("StartDocked", false) || !config.readEntry("DockInSystemTray", false)) {
juk->show(); juk->show();
} }
else if(!a.isSessionRestored()) { else if(!a.isSessionRestored()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment