Skip to content

Commit

Permalink
WineSettings: show correct failure reason.
Browse files Browse the repository at this point in the history
  • Loading branch information
loathingKernel committed Oct 4, 2024
1 parent 069034e commit e55c44f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rare/components/tabs/settings/widgets/wine.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, parent=None):
path="",
file_mode=QFileDialog.FileMode.ExistingFile,
name_filters=["wine", "wine64"],
edit_func=lambda text: (os.path.exists(text) or not text, text, IndicatorReasonsCommon.DIR_NOT_EXISTS),
edit_func=lambda text: (os.path.isfile(text) or not text, text, IndicatorReasonsCommon.FILE_NOT_EXISTS),
save_func=self.save_exec,
)

Expand Down

0 comments on commit e55c44f

Please sign in to comment.