Bug 281368 - Automatically hide kalarm system tray icon when no alarms are active
Summary: Automatically hide kalarm system tray icon when no alarms are active
Status: CLOSED FIXED
Alias: None
Product: kalarm
Classification: Applications
Component: general (show other bugs)
Version: KDE 4
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Jarvie
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-05 09:02 UTC by Todd
Modified: 2020-08-17 23:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Todd 2011-09-05 09:02:19 UTC
Version:           KDE 4 (using KDE 4.7.0) 
OS:                Linux

Currently when kalarm is running in the system tray, the system tray icon is always visible, even if kalarm is not doing anything because you have no active alarms.  It would be nice if the kalarm tray icon would automatically hide if there are no alarms active.  If a user wants to always show the icon or always hide the icon they can do so in the system tray settings, so this will not remove any functionality for users.  Having it auto-hide it if there are no alarms in the next 24 hours (or some other period of time) would be a reasonable alternative

It would also be possible, as an alternative, to make it configurable.  So the user could set it to auto-hide if there are no alarms in the next X period of time, where X could range from 1 minute to forever (if you go below 1 minute it always shows the icon).

Reproducible: Always

Steps to Reproduce:
1. Set kalarm to use the system tray
2. Turn off or delete all alarms

Actual Results:  
kalarm is visible in the system tray with 

Expected Results:  
kalarm is hidden in the system tray (only visible by clicking the arrow or triangle icon).

Please see:
http://aseigo.blogspot.com/2011/08/system-tray-icon-hiding.html
Comment 1 David Jarvie 2012-02-02 00:49:54 UTC
Git commit 5f52d3964d08c928cf090f6c33f2d3b0acd0d662 by David Jarvie.
Committed on 02/02/2012 at 01:48.
Pushed by djarvie into branch 'master'.

Add options to auto-hide system tray icon when no alarms are due

Hide system tray icon by default if no alarms due within 24 hours.
Provide options to select a different time interval, or to show tray
icon at all times.

M  +2    -1    kalarm/Changelog
M  +1    -1    kalarm/itemlistmodel.h
M  +9    -0    kalarm/kalarmconfig.kcfg
M  +92   -9    kalarm/prefdlg.cpp
M  +7    -2    kalarm/prefdlg_p.h
M  +49   -1    kalarm/traywindow.cpp
M  +5    -2    kalarm/traywindow.h

http://commits.kde.org/kdepim/5f52d3964d08c928cf090f6c33f2d3b0acd0d662