mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
tools are always on top if don't have set parent
This commit is contained in:
parent
269c26ccc5
commit
3ae3ec1185
3 changed files with 12 additions and 3 deletions
|
|
@ -51,7 +51,10 @@ class LoaderWindow(QtWidgets.QDialog):
|
|||
self.family_config_cache = lib.FamilyConfigCache(io)
|
||||
|
||||
# Enable minimize and maximize for app
|
||||
self.setWindowFlags(QtCore.Qt.Window)
|
||||
window_flags = QtCore.Qt.Window
|
||||
if not parent:
|
||||
window_flags |= QtCore.Qt.WindowStaysOnTopHint
|
||||
self.setWindowFlags(window_flags)
|
||||
self.setFocusPolicy(QtCore.Qt.StrongFocus)
|
||||
|
||||
body = QtWidgets.QWidget()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue