mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
chore: 当前配置不存在时尝试读取全局配置
This commit is contained in:
@@ -59,6 +59,14 @@ namespace MaaWpfGui.Helper
|
||||
return value;
|
||||
}
|
||||
|
||||
hasValue = _globalKvs.TryGetValue(key, out value);
|
||||
if (hasValue)
|
||||
{
|
||||
_logger.Information("Read configuration key {Key} with global configuration value {Value}, configuration hit: {HasValue}, configuration value {Value}", key, value, true, value);
|
||||
SetValue(key, value);
|
||||
return value;
|
||||
}
|
||||
|
||||
// return hasValue ? value : defaultValue;
|
||||
SetValue(key, defaultValue);
|
||||
return defaultValue;
|
||||
|
||||
Reference in New Issue
Block a user