Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Ask user to restart after changing global environments in settings #1550

Conversation

create-issue-branch[bot]
Copy link

@create-issue-branch create-issue-branch bot commented May 20, 2021

Description

  • tell user modifying settings that his changes require restart of openpype to take an effect

Changes

  • it is possible to mark entity in schemas that it's state change may require restart of openpype
    • this mark can't be added to dynamic items
    • if added to entity with children (dict) value is propagated to it's children if not set explicitly
    • only endpoint entities handle callbacks (e.g. dict don't handle changes because has children that should handle that)
  • root item have collection of entities that require restart and registered callbacks that are triggered if the value changes
  • label in settings ui tell user that his changes require to restart all OpenPype processes to take an effect
  • it is possible to restart tray (if settings are running in tray)
    • added dialog which asks user if it should be done
    • implemented restart_tray method in tray tool

TODO

  • don't check for entity state change but only value change (restart is not required if empty dictionary was added to studio overrides but kept empty)

closes #910

@iLLiCiTiT iLLiCiTiT marked this pull request as ready for review May 27, 2021 11:05
@iLLiCiTiT iLLiCiTiT self-assigned this May 27, 2021
@iLLiCiTiT iLLiCiTiT requested a review from a team May 27, 2021 11:05
@iLLiCiTiT iLLiCiTiT added backend type: enhancement Enhancements to existing functionality labels May 27, 2021
@mkolar mkolar merged commit 194c81b into develop May 27, 2021
@mkolar mkolar deleted the feature/910-ask-user-to-restart-after-changing-global-environments-in-settings branch May 27, 2021 19:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement Enhancements to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ask user to restart after changing global environments in settings
2 participants