Skip to content

Commit

Permalink
fix: 避免添加条目时,自动添加语言栏为zh-CN
Browse files Browse the repository at this point in the history
  • Loading branch information
l0o0 committed Nov 3, 2023
1 parent c6de678 commit 4e578ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions addon/chrome/content/preferences.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
native="true" />
<checkbox id="jasminum.autobookmark" data-l10n-id="autobookmark-label"
preference="__prefsPrefix__.autobookmark" native="true" />
<hbox>
<!-- <hbox>
<checkbox id="jasminum.autolanguage" data-l10n-id="autolanguage-label"
preference="__prefsPrefix__.autolanguage" native="true" />
<label data-l10n-id="autolanguagefunc-label" />
Expand All @@ -26,7 +26,7 @@
<menuitem data-l10n-id="autolanguage-manual" value="Manual" />
</menupopup>
</menulist>
</hbox>
</hbox> -->
</groupbox>
<groupbox>
<label>
Expand Down
10 changes: 5 additions & 5 deletions src/modules/jasminum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ export class BasicExampleFactory {
}
});
}
// Set default language field
if (getPref("autolanguage")) {
items = addedItems.filter((i) => i.isRegularItem());
manualSetLanguage(items);
}
// // Set default language field
// if (getPref("autolanguage")) {
// items = addedItems.filter((i) => i.isRegularItem());
// manualSetLanguage(items);
// }
}

@example
Expand Down

0 comments on commit 4e578ac

Please sign in to comment.