Skip to content

Commit ca87632

Browse files
author
Alberto Iannaccone
committed
fix menu registration
1 parent 38472e6 commit ca87632

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: arduino-ide-extension/src/browser/contributions/interface-scale.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,9 @@ export class InterfaceScale extends Contribution {
159159
newFontScalingEnabled[key] !== this.fontScalingEnabled[key]
160160
);
161161
if (isChanged) {
162-
this.registerMenus(this.menuRegistry);
163162
this.fontScalingEnabled = newFontScalingEnabled;
163+
this.registerMenus(this.menuRegistry);
164164
}
165-
this.fontScalingEnabled = newFontScalingEnabled;
166165
this.updateSettingsDebounced();
167166
}
168167

0 commit comments

Comments
 (0)