fix: 在启动时错误显示开机自启的状态(实际功能不受影响)

This commit is contained in:
uye
2023-11-15 23:51:03 +08:00
parent c5cb491dbd
commit ec6cdecb1e

View File

@@ -56,7 +56,7 @@ namespace MaaWpfGui.Utilities
}
using var key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run", false);
return key?.GetValue(_startupShortcutPath) != null;
return key?.GetValue(_registryKeyName) != null;
}
catch (Exception e)
{