From 3a464acba72ffc77b5b8c4aa6e7413e488681132 Mon Sep 17 00:00:00 2001 From: Stelios Tsampas Date: Sun, 21 Nov 2021 16:59:11 +0200 Subject: [PATCH] EGLSync: Refine error reporting from wine resolver. --- .../tabs/games/import_sync/egl_sync_group.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/rare/components/tabs/games/import_sync/egl_sync_group.py b/rare/components/tabs/games/import_sync/egl_sync_group.py index ffb15e1b..41b08372 100644 --- a/rare/components/tabs/games/import_sync/egl_sync_group.py +++ b/rare/components/tabs/games/import_sync/egl_sync_group.py @@ -76,12 +76,16 @@ class EGLSyncGroup(QGroupBox, Ui_EGLSyncGroup): def wine_resolver_cb(self, path): self.egl_path_info.setText(path) - if path: - self.egl_path_edit.setText(path) - else: + if not path: self.egl_path_info.setText( self.tr('Default Wine prefix is unset, or path does not exist. ' - 'Create it or configure it in Settings -> Linux')) + 'Create it or configure it in Settings -> Linux.')) + elif not os.path.exists(path): + self.egl_path_info.setText( + self.tr('Default Wine prefix is set but EGL manifests path does not exist. ' + 'Your configured default Wine prefix might not be where EGL is installed.')) + else: + self.egl_path_edit.setText(path) @staticmethod def egl_path_edit_edit_cb(path) -> Tuple[bool, str]: