Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add app_display_mode to choose default launch mode (panel or dialog) #42

Closed

Conversation

RicardoMusch
Copy link
Contributor

@RicardoMusch RicardoMusch commented Feb 6, 2023

This pull request adds an app setting app_display_mode which allows us to set how the app launches, in dialog mode or panel mode.

The way that a panel spawns in software like Houdini can make it cumbersome to use (the panel spawns collapsed into a sidebar).
If we prefer a dialog this is now possible.

app.py Outdated
)

else:
self.logger.error("An invalid app_display_mode was configured. `{}` is not a valid app_display_mode "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @RicardoMusch ,

The CI build pipeline fails because of this two line combination so I have added this snippet from the black hook linter:

self.logger.error(
                "An invalid app_display_mode was configured. `{}` is not a valid app_display_mode "
                "setting!".format(self.get_setting("app_display_mode"))
            )

I could not push this to your forked branch so just wanted to paste it here - thanks!

@@ -10,6 +10,11 @@

configuration:

app_display_mode:
type: str
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @RicardoMusch ,
Instead of using a string setting here, I'd prefer to use a boolean to switch the display mode (something like the modal mode for tk-multi-publish2)
I think it's safer and should avoid your "else" condition.

Copy link
Contributor

@rob-aitchison rob-aitchison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @RicardoMusch , is this one now stale as I see the hard-coded wording instead of the get_setting(display_name) convention from the other PR #44 ?
Also, Barbara's comment is still pending.
Just checking, let us know, thanks!

@staceyoue
Copy link
Contributor

Closing as it is redundant to PR #55

@staceyoue staceyoue closed this Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants