Browse Source

UI: Use setGeometry to restore saved dimensions

There was an issue where the position/size would keep changing every
time the program opened/closed, was due to the fact that we were not
calling setGeometry to restore the position/size.
jp9000 10 năm trước cách đây
mục cha
commit
9e39a2c787
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      obs/window-basic-main.cpp

+ 1 - 2
obs/window-basic-main.cpp

@@ -98,8 +98,7 @@ OBSBasic::OBSBasic(QWidget *parent)
 		int posy = config_get_int(App()->GlobalConfig(), "MainWindow",
 		int posy = config_get_int(App()->GlobalConfig(), "MainWindow",
 				"posy");
 				"posy");
 
 
-		resize(width, height);
-		move(posx, posy);
+		setGeometry(posx, posy, width, height);
 	}
 	}