Skip to content

Commit

Permalink
In Clippings Manager, Linux-specific option to minimize when inactive…
Browse files Browse the repository at this point in the history
… should be turned OFF by default (issue #464)
  • Loading branch information
aecreations committed Jun 21, 2024
1 parent 180ca78 commit 1114c15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wx-src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ async function init(aPrefs)
log("Clippings/wx: OS: " + platform.os);

if (platform.os == "linux" && aPrefs.clippingsMgrMinzWhenInactv === null) {
await aePrefs.setPrefs({clippingsMgrMinzWhenInactv: true});
await aePrefs.setPrefs({clippingsMgrMinzWhenInactv: false});
}

if (aPrefs.autoAdjustWndPos === null) {
Expand Down
9 changes: 7 additions & 2 deletions wx-src/scripts/aePrefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@


let aePrefs = {
// Background script state persistence
_defaultBkgdState: {
// Background script state persistence
_clippingMenuItemIDMap: {},
_folderMenuItemIDMap: {},
_autoIncrPlchldrs: [],
Expand All @@ -21,8 +21,8 @@ let aePrefs = {
},
},

// User preferences and customizations
_defaultPrefs: {
// User preferences and customizations
showWelcome: true,
htmlPaste: aeConst.HTMLPASTE_AS_FORMATTED,
autoLineBreak: true,
Expand Down Expand Up @@ -276,6 +276,11 @@ let aePrefs = {

// Remove deprecated prefs
delete aPrefs.tabModalMsgBox;

// Change default setting of Linux-specific pref.
if (aPrefs.clippingsMgrMinzWhenInactv) {
aPrefs.clippingsMgrMinzWhenInactv = false;
}
},


Expand Down

0 comments on commit 1114c15

Please sign in to comment.