mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
chore: NewConfigurationName为空字符串也自动改为当前时间
This commit is contained in:
@@ -935,7 +935,11 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
|
||||
public void AddConfiguration()
|
||||
{
|
||||
NewConfigurationName ??= DateTime.Now.ToString("yy/MM/dd HH:mm:ss");
|
||||
if (string.IsNullOrEmpty(NewConfigurationName))
|
||||
{
|
||||
NewConfigurationName = DateTime.Now.ToString("yy/MM/dd HH:mm:ss");
|
||||
}
|
||||
|
||||
if (ConfigurationHelper.AddConfiguration(NewConfigurationName, CurrentConfiguration))
|
||||
{
|
||||
ConfigurationList.Add(new CombinedData { Display = NewConfigurationName, Value = NewConfigurationName });
|
||||
|
||||
Reference in New Issue
Block a user