Add a warning when the 'Virtual Desktop' feature is enabled on a 'GE' (Glorious Eggroll' Wine version.

This commit is contained in:
Daniel Johnson 2023-12-20 18:57:33 -05:00 committed by Mathieu Comandon
parent 7c57ce3808
commit a07828cf22

View file

@ -117,6 +117,14 @@ def _get_fsync_warning(config, _option_key):
return ""
def _get_virtual_desktop_warning(config, _option_key):
if config.get("Desktop"):
version = config.get("version")
if "-ge-" in version.casefold():
return _("The virtual desktop feature is not supported on 'GE' Wine versions.")
return ""
class wine(Runner):
description = _("Runs Windows games")
human_name = _("Wine")
@ -417,6 +425,7 @@ class wine(Runner):
"section": _("Virtual Desktop"),
"label": _("Windowed (virtual desktop)"),
"type": "bool",
"warning": _get_virtual_desktop_warning,
"default": False,
"help": _(
"Run the whole Windows desktop in a window.\n"