Skip to content

Commit

Permalink
Merge pull request #924 from BigRoy/enhancement/raise_publisher_ui_on…
Browse files Browse the repository at this point in the history
…_show_tool

Raise Publisher UI to front when already opened
  • Loading branch information
iLLiCiTiT authored Oct 1, 2024
2 parents 53ffc37 + 3ed560c commit c31acb9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/ayon_core/tools/publisher/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,13 @@ def set_comment(self, comment):
def make_sure_is_visible(self):
if self._window_is_visible:
self.setWindowState(QtCore.Qt.WindowActive)

else:
self.show()

self.raise_()
self.activateWindow()
self.showNormal()

def showEvent(self, event):
self._window_is_visible = True
super().showEvent(event)
Expand Down

0 comments on commit c31acb9

Please sign in to comment.