Update client/ayon_core/tools/context_dialog/window.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Toke Jepsen 2024-05-23 23:02:28 +01:00 committed by GitHub
parent 0ec05d2fb2
commit 92f9fda546
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -793,13 +793,10 @@ def main(
controller.store_output()
def show(
strict=True
):
def ask_for_context(strict=True):
controller = ContextDialogController()
controller.set_strict(strict)
window = ContextDialog(controller=controller)
window.show()
window.exec_()
return controller.store_output()
return controller.get_selected_context()