From bf05ad5c9c9690ef89a4c42b199f06baee51cccc Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Mon, 25 Sep 2023 17:39:43 +0100 Subject: [PATCH] Fix export when experimental game support is disabled --- OpenMWExport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenMWExport.py b/OpenMWExport.py index ef6a185..9337ec7 100644 --- a/OpenMWExport.py +++ b/OpenMWExport.py @@ -86,8 +86,8 @@ def icon(self): return QIcon("plugins/openmw.ico") def display(self): + game = self.__organizer.managedGame() if self.__organizer.pluginSetting(OpenMWExportPlugin.__NAME, OpenMWExportPlugin.__SHOW_FOR_EXPERIMENTAL_GAMES): - game = self.__organizer.managedGame() if game.gameName() != "Morrowind": QMessageBox.warning(self._parentWidget(), OpenMWExportPlugin.tr("Experimental game"), OpenMWExportPlugin.tr("(At least when this plugin is being written) OpenMW only fully supports game data designed for the Morrowind engine. The game being managed is not Morrowind, so do not expect the game to be fully playable. If you think you know better than this message, update this plugin.")) # Give the user the opportunity to abort