python3-occ: remove obsolete patch
This commit is contained in:
parent
bfe4eddf37
commit
1c88da45aa
@ -1,15 +0,0 @@
|
||||
diff --git a/src/Display/SimpleGui.py b/src/Display/SimpleGui.py
|
||||
index 42705a82..6a274c16 100644
|
||||
--- a/src/Display/SimpleGui.py
|
||||
+++ b/src/Display/SimpleGui.py
|
||||
@@ -161,8 +161,8 @@ def init_display(backend_str: Optional[str]=None,
|
||||
def centerOnScreen(self) -> None:
|
||||
'''Centers the window on the screen.'''
|
||||
resolution = QtWidgets.QApplication.desktop().screenGeometry()
|
||||
- x = (resolution.width() - self.frameSize().width()) / 2
|
||||
- y = (resolution.height() - self.frameSize().height()) / 2
|
||||
+ x = (resolution.width() - self.frameSize().width()) // 2
|
||||
+ y = (resolution.height() - self.frameSize().height()) // 2
|
||||
self.move(x, y)
|
||||
|
||||
def add_menu(self, menu_name: str) -> None:
|
Loading…
Reference in New Issue
Block a user