Skip to content

Commit

Permalink
初期設定不具合を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
hrk-fujii committed Feb 23, 2024
1 parent e11fdd7 commit 33e6a69
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions addon/globalPlugins/USB-D/configUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def setEnableTurnOverSetting(val):
config.conf[CONFIG_GLOBAL_KEY]["enableTurnOver"] = val

def initializeSettings():
if (not hasattr(config.conf, CONFIG_GLOBAL_KEY)) or (not hasattr(config.conf[CONFIG_GLOBAL_KEY], "enableTurnOver")):
setEnableTurnOverSetting(True)
else:
setEnableTurnOverSetting(getEnableTurnOverSetting())
setAutoUpdateCheckSetting(getAutoUpdateCheckSetting())
if not hasattr(config.conf, CONFIG_GLOBAL_KEY):
config.conf[CONFIG_GLOBAL_KEY] = {
"checkForUpdatesOnStartup": True,
"enableTurnOver": True
}

0 comments on commit 33e6a69

Please sign in to comment.