mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
fix: 在启动时错误显示开机自启的状态(实际功能不受影响)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user