Skip to content

Commit

Permalink
Merge pull request #414 from RonnyPfannschmidt/use-integer-div
Browse files Browse the repository at this point in the history
use truediv to set window geometry
  • Loading branch information
TheLastProject committed Nov 4, 2021
2 parents 87658a1 + 9ccbc68 commit 8146cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pext/ui/qt5.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def _bind_to_loaded_ui(self, object: QObject, url: QUrl):
if geometry:
print("Invalid geometry: {}".format(e))
screen_size = self.window.screen().size()
self.window.setGeometry((screen_size.width() - 800) / 2, (screen_size.height() - 600) / 2, 800, 600)
self.window.setGeometry((screen_size.width() - 800) // 2, (screen_size.height() - 600) // 2, 800, 600)

# Start binding the modules
if len(Settings.get('modules')) > 0:
Expand Down

0 comments on commit 8146cc1

Please sign in to comment.