Tweaks to tray code.

This commit is contained in:
Alex Dedul 2007-08-11 01:24:51 +00:00
parent 1372b3fc67
commit ef81832120
1 changed files with 2 additions and 1 deletions

View File

@ -692,7 +692,8 @@ class DelugeGTK:
preferences_dialog.show(self, self.window) preferences_dialog.show(self, self.window)
def show_preferences_dialog_clicked(self, arg=None): def show_preferences_dialog_clicked(self, arg=None):
if self.config.get("lock_tray") == True: if self.config.get("enable_system_tray") and \
self.config.get("lock_tray"):
self.unlock_tray("prefwinshow") self.unlock_tray("prefwinshow")
else: else:
self.show_preferences_dialog() self.show_preferences_dialog()