Move the tweak prevention into a helper function and rename the module hooks w/ compatibility code #26
2 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ const key = `preventMovementHistory`;
|
|||
|
||||
export function preventMovementHistory() {
|
||||
status[key] = SettingStatusEnum.Unknown;
|
||||
if (preventTweakRegistration(key)) { return };
|
||||
if (preventTweakRegistration(key, true)) { return };
|
||||
|
||||
// #region Registration
|
||||
Logger.log(`Registering setting: ${key}`);
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ let notifID = null;
|
|||
|
||||
export function toggleMouseBroadcast() {
|
||||
status[key] = SettingStatusEnum.Unknown;
|
||||
if (preventTweakRegistration(key)) { return };
|
||||
if (preventTweakRegistration(key, true)) { return };
|
||||
|
||||
// #region Registration
|
||||
Logger.log(`Registering setting: ${key}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue