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 33e6a69 commit 6b37196
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions addon/globalPlugins/USB-D/configUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,18 @@ def getAutoUpdateCheckSetting():
try:
return config.conf[CONFIG_GLOBAL_KEY]["checkForUpdatesOnStartup"]
except:
return False
return True
def setAutoUpdateCheckSetting(val):
config.conf[CONFIG_GLOBAL_KEY]["checkForUpdatesOnStartup"] = val

def getEnableTurnOverSetting():
try:
return config.conf[CONFIG_GLOBAL_KEY]["enableTurnOver"]
except:
return False
return True

def setEnableTurnOverSetting(val):
config.conf[CONFIG_GLOBAL_KEY]["enableTurnOver"] = val

def initializeSettings():
if not hasattr(config.conf, CONFIG_GLOBAL_KEY):
config.conf[CONFIG_GLOBAL_KEY] = {
"checkForUpdatesOnStartup": True,
"enableTurnOver": True
}
pass

0 comments on commit 6b37196

Please sign in to comment.