Skip to content

Commit bad3897

Browse files
committed
Disable tab stop settings for non-asm files
1 parent db8e3cd commit bad3897

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/ide/settings.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ export function openSettings() {
194194
}
195195
});
196196
dialog.on('shown.bs.modal', () => {
197+
if (!isAsmMode(mode)) {
198+
$('#setting_asmColumns').addClass('disabled');
199+
$('#setting_asmOpcodes, #setting_asmOperands, #setting_asmComments').prop('disabled', true);
200+
}
197201
updateUI(settings);
198202
$('#setting_tabSize').focus().select().on('input', () => {
199203
settings.tabSize = parseInt($('#setting_tabSize').val() as string) || MIN_TAB_SIZE;

0 commit comments

Comments
 (0)