1
0
Fork 0
mirror of synced 2024-06-26 10:11:19 +12:00

EGLSync: Refine error reporting from wine resolver.

This commit is contained in:
Stelios Tsampas 2021-11-21 16:59:11 +02:00
parent 81bc1007d2
commit 3a464acba7
No known key found for this signature in database
GPG key ID: 2FAEBF7B5BE5FD7C

View file

@ -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]: