Skip to content

Commit

Permalink
settings fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vitiacat committed Jul 23, 2022
1 parent dd6c105 commit 9584d8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ jobs:
uses: actions/download-artifact@v3
with:
name: ModrinthBrowser
- name: Download artifact 2
uses: actions/download-artifact@v3
with:
path: translations
release_windows-assets:
name: Release assets
needs:
Expand All @@ -88,8 +84,4 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: ModrinthBrowser.exe
- name: Download artifact 2
uses: actions/download-artifact@v3
with:
path: translations
name: ModrinthBrowser.exe
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,10 @@ def open_settings(self):

paths = utils.find_mc_paths()
if len(paths) > 0:
minecraft_path_variants.addItems(paths)
minecraft_path_variants.addItems([''] + paths)
minecraft_path_variants.setCurrentText(minecraft_path.text())
minecraft_path_variants.currentTextChanged.connect(minecraft_path.setText)
minecraft_path_variants.currentTextChanged.connect(lambda text: (minecraft_path.setText(text),
check_settings()))
else:
minecraft_path_variants.setVisible(False)

Expand Down

0 comments on commit 9584d8d

Please sign in to comment.