Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit ad45e83

Browse files
authored
Merge pull request #75 from OMGDuke/74/settings-not-saving
74/settings not saving
2 parents 3c429b1 + 517bec2 commit ad45e83

12 files changed

Lines changed: 421 additions & 351 deletions

File tree

main.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import os
2+
import decky_plugin
3+
from settings import SettingsManager
4+
5+
class Plugin:
6+
async def _main(self):
7+
self.settings = SettingsManager(name="config", settings_directory=decky_plugin.DECKY_PLUGIN_SETTINGS_DIR)
8+
9+
async def _unload(self):
10+
pass
11+
12+
async def set_setting(self, key, value):
13+
self.settings.setSetting(key, value)
14+
15+
async def get_setting(self, key, default):
16+
return self.settings.getSetting(key, default)

package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "protondb-decky",
3-
"version": "1.0.11",
3+
"version": "1.0.12",
44
"description": "Display tappable ProtonDB badges on your game pages",
55
"scripts": {
66
"build": "shx rm -rf dist && rollup -c",
@@ -31,29 +31,30 @@
3131
"@rollup/plugin-replace": "^4.0.0",
3232
"@rollup/plugin-typescript": "^9.0.2",
3333
"@types/react": "16.14.0",
34-
"@types/webpack": "^5.28.0",
35-
"@typescript-eslint/eslint-plugin": "^5.59.5",
36-
"@typescript-eslint/parser": "^5.59.5",
37-
"eslint": "^8.40.0",
38-
"eslint-config-prettier": "^8.8.0",
39-
"eslint-plugin-prettier": "^4.2.1",
40-
"prettier": "^2.8.8",
34+
"@types/webpack": "^5.28.5",
35+
"@typescript-eslint/eslint-plugin": "^6.17.0",
36+
"@typescript-eslint/parser": "^6.17.0",
37+
"decky-frontend-lib": "^3.24.1",
38+
"eslint": "^8.56.0",
39+
"eslint-config-prettier": "^9.1.0",
40+
"eslint-plugin-prettier": "^5.1.2",
41+
"prettier": "^3.1.1",
4142
"rollup": "^2.79.1",
4243
"rollup-plugin-import-assets": "^1.1.1",
4344
"shx": "^0.3.4",
44-
"tslib": "^2.5.0",
45-
"typescript": "^5.0.4"
45+
"tslib": "^2.6.2",
46+
"typescript": "^5.3.3"
4647
},
4748
"dependencies": {
48-
"decky-frontend-lib": "^3.20.7",
4949
"localforage": "^1.10.0",
50-
"react-icons": "^4.8.0"
50+
"react-icons": "^4.12.0"
5151
},
5252
"pnpm": {
5353
"peerDependencyRules": {
5454
"ignoreMissing": [
5555
"react",
56-
"react-dom"
56+
"react-dom",
57+
"decky-frontend-lib"
5758
]
5859
}
5960
}

0 commit comments

Comments
 (0)