Fix hotkey registration control

This commit is contained in:
jie65535 committed 2023-10-14 15:55:57 +08:00
1 parent f8b920100d
commit 07fb477c3a
1 file changed
+2
+2
View File
@@ -124,6 +124,8 @@ namespace GrasscutterTools.Utils
// 如果注册过该热键,ID不为0。卸载热键会将ID置零。
if (item.HotKeyId != 0)
return;
if (!IsEnabled)
return;
var id = Interlocked.Increment(ref _regMaxId);