Skip to content

Commit

Permalink
Merge pull request #26 from bajrangCoder/patch-2
Browse files Browse the repository at this point in the history
Patched Settings Issue
  • Loading branch information
bajrangCoder committed Aug 29, 2023
2 parents adae569 + 10ac19b commit b6996ab
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,17 @@ class AcodeX {
FONT_FAMILY = "'Cascadia Code', Menlo, monospace";
SCROLLBACK = 1000;
SCROLL_SENSITIVITY = 1000;
themeList = ["xterm","snazzy","sapphire","light","custom"];

constructor() {
if (!appSettings.value[plugin.id]) {
this._saveSetting()
} else {
delete appSettings.value[plugin.id];
appSettings.update(false);
this._saveSetting()
if(!this.settings.theme){
delete appSettings.value[plugin.id];
appSettings.update(false);
this._saveSetting()
}
}
}

Expand Down Expand Up @@ -1017,13 +1020,7 @@ class AcodeX {
text: "Theme",
value: this.settings.theme,
info: "Theme of terminal.",
select: [
"xterm",
"snazzy",
"sapphire",
"light",
"custom"
],
select: this.themeList,
},
{
index: 6,
Expand Down

0 comments on commit b6996ab

Please sign in to comment.