mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[view] fix: windows positioning regressions
This commit is contained in:
@@ -9,6 +9,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
### Fixes
|
### Fixes
|
||||||
- Arch
|
- Arch
|
||||||
- not properly checking all provided packages by the system when checking for conflicts (upgrade requirements)
|
- not properly checking all provided packages by the system when checking for conflicts (upgrade requirements)
|
||||||
|
- UI
|
||||||
|
- some windows not properly being centralized (regression introduced in **0.10.4**)
|
||||||
|
- some windows being displayed in the wrong place (regression introduced in **0.10.4**)
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
- Arch
|
- Arch
|
||||||
|
|||||||
@@ -10,9 +10,10 @@ desktop: Optional[QDesktopWidget] = None
|
|||||||
|
|
||||||
|
|
||||||
def centralize(widget: QWidget):
|
def centralize(widget: QWidget):
|
||||||
|
widget_frame = widget.frameGeometry()
|
||||||
screen_geometry = get_current_screen_geometry()
|
screen_geometry = get_current_screen_geometry()
|
||||||
widget.frameGeometry().moveCenter(screen_geometry.center())
|
widget_frame.moveCenter(screen_geometry.center())
|
||||||
widget.move(widget.frameGeometry().topLeft())
|
widget.move(widget_frame.topLeft())
|
||||||
|
|
||||||
|
|
||||||
def load_icon(path: str, width: int, height: int = None) -> QIcon:
|
def load_icon(path: str, width: int, height: int = None) -> QIcon:
|
||||||
|
|||||||
Reference in New Issue
Block a user