mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-06-07 22:59:14 +08:00
Fix hotkey registration control
This commit is contained in:
parent
f8b920100d
commit
07fb477c3a
@ -124,6 +124,8 @@ namespace GrasscutterTools.Utils
|
||||
// 如果注册过该热键,ID不为0。卸载热键会将ID置零。
|
||||
if (item.HotKeyId != 0)
|
||||
return;
|
||||
if (!IsEnabled)
|
||||
return;
|
||||
|
||||
var id = Interlocked.Increment(ref _regMaxId);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user