Commit 28a301ee authored by David Jarvie's avatar David Jarvie

Fix wrong user message about autoHideSystemTray values

parent e47dd7e3
......@@ -103,7 +103,7 @@
</entry>
<entry name="AutoHideSystemTray" type="Int">
<label context="@label">Auto-hide in system tray if no alarms due within period</label>
<whatsthis context="@info:whatsthis">&lt;para>Enter 0 to auto-hide &lt;application>KAlarm&lt;/application>'s icon in the system tray when there are no active alarms.&lt;/para>&lt;para>To auto-hide the system tray icon when there are no alarms due within a set period of time, enter the time period in minutes.&lt;/para>&lt;para>Enter 0 to always show the system tray icon.&lt;/para></whatsthis>
<whatsthis context="@info:whatsthis">&lt;para>Enter -1 to auto-hide &lt;application>KAlarm&lt;/application>'s icon in the system tray when there are no active alarms.&lt;/para>&lt;para>To auto-hide the system tray icon when there are no alarms due within a set period of time, enter the time period in minutes.&lt;/para>&lt;para>Enter 0 to always show the system tray icon.&lt;/para></whatsthis>
<default>1440</default>
<emit signal="autoHideSystemTrayChanged"/>
</entry>
......
......@@ -1796,7 +1796,7 @@ void ViewPrefTab::restore(bool, bool allTabs)
int mins = Preferences::autoHideSystemTray();
switch (mins)
{
case -1: id = 1; break; // hide if any active alarms
case -1: id = 1; break; // hide if no active alarms
case 0: id = 0; break; // never hide
default:
{
......@@ -1860,7 +1860,7 @@ void ViewPrefTab::apply(bool syncToDisc)
switch (mAutoHideSystemTray->selectedId())
{
case 0: n = 0; break; // never hide
case 1: n = -1; break; // hide if any active alarms
case 1: n = -1; break; // hide if no active alarms
case 2: // hide if no alarms due within period
n = mAutoHideSystemTrayPeriod->period().asSeconds() / 60;
break;
......
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