Fix #298 resume torrentview and statusbar after presenting the window

This commit is contained in:
Andrew Resch 2008-06-25 03:26:26 +00:00
parent a58b26c550
commit 9648d2c6b0

View File

@ -81,6 +81,7 @@ class MainWindow(component.Component):
try:
component.resume("TorrentView")
component.resume("StatusBar")
component.resume("TorrentDetails")
except:
pass
@ -89,6 +90,7 @@ class MainWindow(component.Component):
def hide(self):
component.pause("TorrentView")
component.pause("StatusBar")
component.pause("TorrentDetails")
# Store the x, y positions for when we restore the window
self.window_x_pos = self.window.get_position()[0]
self.window_y_pos = self.window.get_position()[1]
@ -101,7 +103,13 @@ class MainWindow(component.Component):
self.config["window_y_pos"] = self.window_y_pos
except:
pass
try:
component.resume("TorrentView")
component.resume("StatusBar")
component.resume("TorrentDetails")
except:
pass
self.window.present()
self.load_window_state()