mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
[#2315] [GTKUI] Potential fix for lost window on Win32
This commit is contained in:
parent
98e8418087
commit
59fa974b3b
1 changed files with 6 additions and 2 deletions
|
@ -133,8 +133,12 @@ class MainWindow(component.Component):
|
||||||
def restore():
|
def restore():
|
||||||
# Restore the proper x,y coords for the window prior to showing it
|
# Restore the proper x,y coords for the window prior to showing it
|
||||||
try:
|
try:
|
||||||
self.config["window_x_pos"] = self.window_x_pos
|
if self.window_x_pos == -32000 or self.window_y_pos == -32000:
|
||||||
self.config["window_y_pos"] = self.window_y_pos
|
self.config["window_x_pos"] = 0
|
||||||
|
self.config["window_y_pos"] = 0
|
||||||
|
else:
|
||||||
|
self.config["window_x_pos"] = self.window_x_pos
|
||||||
|
self.config["window_y_pos"] = self.window_y_pos
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue