Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
modified flags of delivery dialog to be always on top
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Jan 4, 2022
1 parent 80fd24f commit d53b038
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions openpype/plugins/load/delivery.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from collections import defaultdict
import copy
from collections import defaultdict

from Qt import QtWidgets, QtCore, QtGui

Expand Down Expand Up @@ -58,6 +58,18 @@ class DeliveryOptionsDialog(QtWidgets.QDialog):
def __init__(self, contexts, log=None, parent=None):
super(DeliveryOptionsDialog, self).__init__(parent=parent)

self.setWindowTitle("OpenPype - Deliver versions")
icon = QtGui.QIcon(resources.get_openpype_icon_filepath())
self.setWindowIcon(icon)

self.setWindowFlags(
QtCore.Qt.WindowStaysOnTopHint
| QtCore.Qt.WindowCloseButtonHint
| QtCore.Qt.WindowMinimizeButtonHint
)

self.setStyleSheet(style.load_stylesheet())

project = contexts[0]["project"]["name"]
self.anatomy = Anatomy(project)
self._representations = None
Expand All @@ -70,16 +82,6 @@ def __init__(self, contexts, log=None, parent=None):

self._set_representations(contexts)

self.setWindowTitle("OpenPype - Deliver versions")
icon = QtGui.QIcon(resources.get_openpype_icon_filepath())
self.setWindowIcon(icon)

self.setWindowFlags(
QtCore.Qt.WindowCloseButtonHint |
QtCore.Qt.WindowMinimizeButtonHint
)
self.setStyleSheet(style.load_stylesheet())

dropdown = QtWidgets.QComboBox()
self.templates = self._get_templates(self.anatomy)
for name, _ in self.templates.items():
Expand Down

0 comments on commit d53b038

Please sign in to comment.