From e9459b79d836dbec85e8147d4f26593dcab7dede Mon Sep 17 00:00:00 2001 From: Garux Date: Thu, 5 Oct 2023 21:02:50 +0600 Subject: [PATCH] fix .game no_patch key handling OG behavior was to have preference to hide patch toolbar, if no_patch was set to non empty string xD patch toolbar was shown by default anyway xD now treat "1" as hide, anything else = show, including non set --- radiant/mainframe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radiant/mainframe.cpp b/radiant/mainframe.cpp index 570f6a38..f47e1a75 100644 --- a/radiant/mainframe.cpp +++ b/radiant/mainframe.cpp @@ -1421,7 +1421,7 @@ void create_main_toolbar( QToolBar *toolbar, MainFrame::EViewStyle style ){ Manipulators_constructToolbar( toolbar ); toolbar->addSeparator(); - if ( !string_empty( g_pGameDescription->getKeyValue( "no_patch" ) ) ) { + if ( !string_equal( g_pGameDescription->getKeyValue( "no_patch" ), "1" ) ) { Patch_constructToolbar( toolbar ); toolbar->addSeparator(); }