getavalon / core

The safe post-production pipeline - https://getavalon.github.io/2.0
MIT License
213 stars 48 forks source link

Toggle "Save As" button in Workfiles. #552

Closed tokejepsen closed 3 years ago

tokejepsen commented 4 years ago

Changes This PR enables developers to disable the "Save As" button when showing the Workfiles app.

import avalon.tools.workfiles
avalon.tools.workfiles.show(save=False)

Motivation The specific use-case for this is the Harmony host. Unfortunately you cannot open a scene in an active application instance of Harmony, so you need to relaunch Harmony as a new process. For the Workfiles flow this means the user has to open an instance of Harmony then open it again to launch the scene they want. With this PR we can show the Workfiles tool before the application is launched, and the user can open the scene file they want, reducing the wait by one application launch.

This "launch before application" behaviour can be ported to other hosts, but its less necessary if you can prevent launching a new process.

jakubjezek001 commented 4 years ago

Hi. How about to name the proposed attribute save to something like saving or save_as. This way it would be more explicit.

tokejepsen commented 4 years ago

save maps directly to the widget.

tokejepsen commented 3 years ago

This PR is redundant now.