Skip to content

Commit

Permalink
Merge pull request #75 from OMGDuke/74/settings-not-saving
Browse files Browse the repository at this point in the history
74/settings not saving
  • Loading branch information
OMGDuke authored Jan 15, 2024
2 parents 3c429b1 + 517bec2 commit ad45e83
Show file tree
Hide file tree
Showing 12 changed files with 421 additions and 351 deletions.
16 changes: 16 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import os
import decky_plugin
from settings import SettingsManager

class Plugin:
async def _main(self):
self.settings = SettingsManager(name="config", settings_directory=decky_plugin.DECKY_PLUGIN_SETTINGS_DIR)

async def _unload(self):
pass

async def set_setting(self, key, value):
self.settings.setSetting(key, value)

async def get_setting(self, key, default):
return self.settings.getSetting(key, default)
27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "protondb-decky",
"version": "1.0.11",
"version": "1.0.12",
"description": "Display tappable ProtonDB badges on your game pages",
"scripts": {
"build": "shx rm -rf dist && rollup -c",
Expand Down Expand Up @@ -31,29 +31,30 @@
"@rollup/plugin-replace": "^4.0.0",
"@rollup/plugin-typescript": "^9.0.2",
"@types/react": "16.14.0",
"@types/webpack": "^5.28.0",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.8",
"@types/webpack": "^5.28.5",
"@typescript-eslint/eslint-plugin": "^6.17.0",
"@typescript-eslint/parser": "^6.17.0",
"decky-frontend-lib": "^3.24.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.2",
"prettier": "^3.1.1",
"rollup": "^2.79.1",
"rollup-plugin-import-assets": "^1.1.1",
"shx": "^0.3.4",
"tslib": "^2.5.0",
"typescript": "^5.0.4"
"tslib": "^2.6.2",
"typescript": "^5.3.3"
},
"dependencies": {
"decky-frontend-lib": "^3.20.7",
"localforage": "^1.10.0",
"react-icons": "^4.8.0"
"react-icons": "^4.12.0"
},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"react",
"react-dom"
"react-dom",
"decky-frontend-lib"
]
}
}
Expand Down
Loading

0 comments on commit ad45e83

Please sign in to comment.