Skip to content

Commit 785cb85

Browse files
authored
Merge pull request #11 from Garulf/remove-default-value
Make finding Playnite's install path more robust
2 parents f146983 + ffca2e5 commit 785cb85

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

SettingsTemplate.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ body:
88
attributes:
99
name: playnite_path
1010
label: 'Playnite User Directory:'
11-
description: Location of Playnite user folder
12-
defaultValue: ""
11+
description: Location of Playnite user folder
1312
- type: checkbox
1413
attributes:
1514
name: hide_uninstalled

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Name": "Playnite",
55
"Description": "Search and launch your Playnite library.",
66
"Author": "Garulf",
7-
"Version": "1.5.2",
7+
"Version": "1.5.3",
88
"Language": "python",
99
"Website": "https://github.com/Garulf/playnite-plugin",
1010
"IcoPath": "./icon.png",

plugin/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ class Playnite(Flox):
2323

2424
def load_settings(self):
2525
self.playnite_path = self.settings.setdefault('playnite_path', str(pn.DATA_FOLDER))
26-
if self.settings.get('playnite_path') == '':
27-
self.playnite_path = str(pn.DATA_FOLDER)
28-
self.settings['playnite_path'] = str(pn.DATA_FOLDER)
2926
self.hide_uninstalled = self.settings.get('hide_uninstalled', True)
3027

3128
def missing_library(self):

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
flox-lib==0.14.0
1+
flox-lib==0.14.1

0 commit comments

Comments
 (0)