Skip to content

Commit

Permalink
hound fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitConnan committed Feb 7, 2022
1 parent 022fce8 commit 509792e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions openpype/tools/studio_tools/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import PySide2.QtWidgets as QtWidgets
from pyblish_pype import util
from openpype.settings import get_project_settings
from avalon import api
from openpype.tools.utils import lib as tools_lib

import scriptsmenu
Expand All @@ -14,6 +13,7 @@
module = sys.modules[__name__]
module.window = None


class StudioToolsDialog(QtWidgets.QWidget):
def __init__(self, parent=None):
super(StudioToolsDialog, self).__init__(parent)
Expand Down Expand Up @@ -43,10 +43,10 @@ def __init__(self, parent=None):
log.info("Attempting to build menu ...")
object_name = objectName or title.lower()
menu = scriptsmenu.ScriptsMenu(title=title,
parent=parent,
objectName=object_name)
parent=parent,
objectName=object_name)
layout.addWidget(menu)
menu.aboutToHide.connect(menu.show) #IF menu try to hide -> Don't
menu.aboutToHide.connect(menu.show) # IF menu try to hide -> Don't
except Exception as e:
log.error(e)
return
Expand All @@ -58,6 +58,7 @@ def __init__(self, parent=None):
menu.build_from_configuration(menu, config)
self.menu = menu


def show(debug=False, parent=None):
"""Display Loader GUI
Expand Down

0 comments on commit 509792e

Please sign in to comment.