Move the tweak prevention into a helper function and rename the module hooks w/ compatibility code #26

Merged
Oliver merged 4 commits from feature/change-hook-name into main 2025-12-20 01:39:52 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 037533401b - Show all commits

View file

@ -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}`);

View file

@ -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}`);