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
This commit is contained in:
parent
dee00be204
commit
e9459b79d8
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user