Skip to content

Commit 93648ca

Browse files
committed
Solve move center
1 parent d712def commit 93648ca

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • bigbashview/usr/lib/bbv/ui

bigbashview/usr/lib/bbv/ui/qt.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,7 @@ def load_url(self, url):
254254
# Load the specified URL in the web view
255255
self.url = QUrl.fromEncoded(url.encode("utf-8"))
256256
self.web.load(self.url)
257-
258-
257+
259258
def set_size(self, width, height, window_state):
260259
# Set the window size and position based on the provided arguments
261260
display = self.app.screenAt(QCursor().pos())
@@ -269,9 +268,6 @@ def set_size(self, width, height, window_state):
269268
if height <= 0:
270269
height = int(size.height()/2)
271270

272-
cp = display.availableGeometry().center()
273-
qr.moveCenter(cp)
274-
275271
self.resize(width, height)
276272
qr = self.frameGeometry()
277273
self.move(qr.topLeft())

0 commit comments

Comments
 (0)