mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Use screen of window instead of primary screen
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
40125fa6a5
commit
300a443510
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ class Popup(QtWidgets.QDialog):
|
|||
height = max(height, window.sizeHint().height())
|
||||
|
||||
try:
|
||||
screen = QtWidgets.QApplication.primaryScreen()
|
||||
screen = window.screen()
|
||||
desktop_geometry = screen.availableGeometry()
|
||||
except AttributeError:
|
||||
# Backwards compatibility for older Qt versions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue