mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
Fix displaying new release dialog in Windows
This commit is contained in:
parent
89c9228cec
commit
79c78fa7ef
2 changed files with 4 additions and 2 deletions
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
==== Windows ====
|
==== Windows ====
|
||||||
* Fix displaying folders in the add torrent dialog
|
* Fix displaying folders in the add torrent dialog
|
||||||
|
* Fix displaying the new release dialog
|
||||||
|
|
||||||
==== Blocklist ====
|
==== Blocklist ====
|
||||||
* Fix blocklist status icon not opening the blocklist preference
|
* Fix blocklist status icon not opening the blocklist preference
|
||||||
|
|
|
@ -64,7 +64,7 @@ class MainWindow(component.Component):
|
||||||
self.window = self.main_glade.get_widget("main_window")
|
self.window = self.main_glade.get_widget("main_window")
|
||||||
|
|
||||||
self.window.set_icon(common.get_deluge_icon())
|
self.window.set_icon(common.get_deluge_icon())
|
||||||
|
|
||||||
self.vpaned = self.main_glade.get_widget("vpaned")
|
self.vpaned = self.main_glade.get_widget("vpaned")
|
||||||
self.initial_vpaned_position = self.config["window_pane_position"]
|
self.initial_vpaned_position = self.config["window_pane_position"]
|
||||||
|
|
||||||
|
@ -238,8 +238,9 @@ class MainWindow(component.Component):
|
||||||
|
|
||||||
def on_newversionavailable_event(self, new_version):
|
def on_newversionavailable_event(self, new_version):
|
||||||
if self.config["show_new_releases"]:
|
if self.config["show_new_releases"]:
|
||||||
|
from twisted.internet import reactor
|
||||||
from deluge.ui.gtkui.new_release_dialog import NewReleaseDialog
|
from deluge.ui.gtkui.new_release_dialog import NewReleaseDialog
|
||||||
NewReleaseDialog().show(new_version)
|
reactor.callLater(5.0, NewReleaseDialog().show, new_version)
|
||||||
|
|
||||||
def on_torrentfinished_event(self, torrent_id):
|
def on_torrentfinished_event(self, torrent_id):
|
||||||
from deluge.ui.gtkui.notification import Notification
|
from deluge.ui.gtkui.notification import Notification
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue