Fix hotkey registration control

This commit is contained in:
2023-10-14 15:55:57 +08:00
parent f8b920100d
commit 07fb477c3a

View File

@ -124,6 +124,8 @@ namespace GrasscutterTools.Utils
// 如果注册过该热键ID不为0。卸载热键会将ID置零。 // 如果注册过该热键ID不为0。卸载热键会将ID置零。
if (item.HotKeyId != 0) if (item.HotKeyId != 0)
return; return;
if (!IsEnabled)
return;
var id = Interlocked.Increment(ref _regMaxId); var id = Interlocked.Increment(ref _regMaxId);