Remove on_quit_systray config option

This commit is contained in:
Thomas Perl 2010-12-20 00:23:10 +01:00
parent 41054b620a
commit bf7c297157
2 changed files with 1 additions and 7 deletions

View file

@ -159,8 +159,6 @@ gPodderSettings = {
("Whether or not the player requires Windows-style paths in the playlist.")),
# Special settings (not in preferences)
'on_quit_systray': (bool, False,
("When the 'X' button is clicked do not quit, send gPodder to the tray.")),
'max_episodes_per_feed': (int, 200,
("The maximum number of episodes that gPodder will display in the episode "
"list. Note: Set this to a lower value on slower hardware to speed up "

View file

@ -3073,11 +3073,7 @@ class gPodder(BuilderWidget, dbus.service.Object):
downloading = self.download_status_model.are_downloads_in_progress()
# Only iconify if we are using the window's "X" button,
# but not when we are using "Quit" in the menu or toolbar
if self.config.on_quit_systray and self.tray_icon and widget.get_name() not in ('toolQuit', 'itemQuit'):
self.iconify_main_window()
elif downloading:
if downloading:
if gpodder.ui.fremantle:
self.close_gpodder()
elif gpodder.ui.diablo: