Skip to content

Commit

Permalink
fix: #58 fixed settings issue
Browse files Browse the repository at this point in the history
Fixed the issue which just reset acodex settings to default after restart

Closes: #58
  • Loading branch information
bajrangCoder committed Mar 29, 2024
1 parent 5eaadf0 commit 7026e5d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "acode-plugin-acodex",
"version": "3.1.3",
"version": "3.1.4",
"description": "Terminal support for Acode",
"main": "dist/main.js",
"repository": "https://github.com/bajrangCoder/acode-plugin-terminal.git",
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "bajrangcoder.acodex",
"name": "AcodeX - Terminal",
"main": "dist/main.js",
"version": "3.1.3",
"version": "3.1.4",
"readme": "readme.md",
"icon": "icon.png",
"files": [],
Expand Down
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@

<details>
<summary>
<h3 style="display:inline">Update v3.1.3</h3>
<h3 style="display:inline">Update v3.1.3 & v3.1.4</h3>
</summary>

- Enhanced AcodeX by integrating AI into the terminal, making it a standout option in the modern era. (Check `How to use AI section` for refrence)
- Updated the default font family for the Terminal to `Meslo NF Regular`.
- Resolved the issue with the `exit` command; now, typing `exit` in the terminal will promptly close the current session.
- fixed settings issue (v3.1.4)


</details>
<br/>
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class AcodeX {
if (!appSettings.value[plugin.id]) {
this._saveSetting();
} else {
if (!this.settings.aiApiKey) {
if (!this.settings.aiModel) {
delete appSettings.value[plugin.id];
appSettings.update(false);
this._saveSetting();
Expand Down

0 comments on commit 7026e5d

Please sign in to comment.