Skip to content

Commit

Permalink
Fixed a crash issue when deleting a model
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemmstone committed Mar 26, 2024
1 parent d08bb51 commit 4b432f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Core/imageGallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def delete_model(self):
result = confirmation.exec()

if result == QMessageBox.StandardButton.Yes:
shutil.rmtree(f"Models/{self.modelType}/{self.modelName}")
shutil.rmtree(os.path.join(self.res_dir, "Models", self.modelType, self.modelName))
self.deleted.emit()

def rename_model(self):
Expand Down
2 changes: 1 addition & 1 deletion Data/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"volume threshold": 22,
"scream threshold": 93,
"delay threshold": 14,
"microphone selection": 1,
"microphone selection": 3,
"microphone mute": false,
"background color": 0,
"export mode": 0,
Expand Down

0 comments on commit 4b432f0

Please sign in to comment.