mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-10 02:18:41 +00:00
remove uneffective hide
This commit is contained in:
parent
de8b55c9ed
commit
94a159a66f
1 changed files with 0 additions and 4 deletions
|
@ -154,7 +154,6 @@ class DelugeGTK:
|
||||||
result = 0
|
result = 0
|
||||||
def win_handler(self, ctrl_type):
|
def win_handler(self, ctrl_type):
|
||||||
if ctrl_type == CTRL_CLOSE_EVENT:
|
if ctrl_type == CTRL_CLOSE_EVENT:
|
||||||
self.window.hide()
|
|
||||||
self.shutdown()
|
self.shutdown()
|
||||||
result = 1
|
result = 1
|
||||||
return result
|
return result
|
||||||
|
@ -466,7 +465,6 @@ window, please enter your password"))
|
||||||
elif comingnext == "plugwinshow":
|
elif comingnext == "plugwinshow":
|
||||||
self.show_plugin_dialog()
|
self.show_plugin_dialog()
|
||||||
elif comingnext == "quitus":
|
elif comingnext == "quitus":
|
||||||
self.window.hide()
|
|
||||||
self.shutdown()
|
self.shutdown()
|
||||||
|
|
||||||
tray_lock.destroy()
|
tray_lock.destroy()
|
||||||
|
@ -1647,13 +1645,11 @@ want to remove all seeding torrents?")):
|
||||||
|
|
||||||
def quit(self, widget=None):
|
def quit(self, widget=None):
|
||||||
if self.window.get_property("visible"):
|
if self.window.get_property("visible"):
|
||||||
self.window.hide()
|
|
||||||
self.shutdown()
|
self.shutdown()
|
||||||
else:
|
else:
|
||||||
if self.config.get("lock_tray"):
|
if self.config.get("lock_tray"):
|
||||||
self.unlock_tray("quitus")
|
self.unlock_tray("quitus")
|
||||||
else:
|
else:
|
||||||
self.window.hide()
|
|
||||||
self.shutdown()
|
self.shutdown()
|
||||||
|
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue