mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
flame: fixing pref file handling
This commit is contained in:
parent
b3a2842949
commit
97f6afa90f
2 changed files with 7 additions and 4 deletions
|
|
@ -114,11 +114,14 @@ class FlameAppFramework(object):
|
|||
self.hostname,
|
||||
)
|
||||
|
||||
self.log.info("[{}] waking up".format(self.__class__.__name__))
|
||||
self.load_prefs()
|
||||
self.log.info("[{}] waking up".format(self.__class__.__name__))
|
||||
|
||||
try:
|
||||
self.load_prefs()
|
||||
except RuntimeError:
|
||||
self.save_prefs()
|
||||
|
||||
# menu auto-refresh defaults
|
||||
|
||||
if not self.prefs_global.get("menu_auto_refresh"):
|
||||
self.prefs_global["menu_auto_refresh"] = {
|
||||
"media_panel": True,
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ def _sync_utility_scripts(env=None):
|
|||
)
|
||||
else:
|
||||
shutil.copy2(src, dst)
|
||||
except PermissionError as msg:
|
||||
except (PermissionError, FileExistsError) as msg:
|
||||
log.warning(
|
||||
"Not able to coppy to: `{}`, Problem with: `{}`".format(
|
||||
dst,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue