mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 21:14:55 +00:00
remove misplaced and unnecessary code
This commit is contained in:
parent
c6c649485e
commit
4d4b2de7c3
@ -112,35 +112,12 @@ class MenuBar:
|
||||
def on_menuitem_quitdaemon_activate(self, data=None):
|
||||
log.debug("on_menuitem_quitdaemon_activate")
|
||||
# Tell the core to shutdown
|
||||
if self.window.visible():
|
||||
self.window.hide()
|
||||
self.window.quit()
|
||||
functions.shutdown()
|
||||
else:
|
||||
from deluge.configmanager import ConfigManager
|
||||
if self.config.get("lock_tray") == True:
|
||||
from deluge.ui.gtk.systemtray import SystemTray
|
||||
SystemTray.unlock_tray("quitdaemon")
|
||||
else:
|
||||
self.window.hide()
|
||||
self.window.quit()
|
||||
functions.shutdown()
|
||||
self.window.quit()
|
||||
functions.shutdown()
|
||||
|
||||
def on_menuitem_quit_activate(self, data=None):
|
||||
log.debug("on_menuitem_quit_activate")
|
||||
if self.window.visible():
|
||||
self.window.hide()
|
||||
self.window.quit()
|
||||
else:
|
||||
from deluge.configmanager import ConfigManager
|
||||
self.config = ConfigManager("gtkui.conf")
|
||||
if self.config.get("lock_tray") == True:
|
||||
log.debug("trying to import")
|
||||
from deluge.ui.gtk.systemtray import SystemTray
|
||||
SystemTray.unlock_tray("quitui")
|
||||
else:
|
||||
self.window.hide()
|
||||
self.window.quit()
|
||||
self.window.quit()
|
||||
|
||||
## Edit Menu ##
|
||||
def on_menuitem_preferences_activate(self, data=None):
|
||||
|
Loading…
x
Reference in New Issue
Block a user