diff options
-rw-r--r-- | src/company_gui.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp index 4cb23cfbc..67c6a9ea4 100644 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -437,7 +437,13 @@ struct CompanyFinancesWindow : Window { case CFW_TOGGLE_SIZE: // toggle size this->small = !this->small; this->SetupWidgets(); - this->ReInit(); + if (this->IsShaded()) { + /* Finances window is not resizable, so size hints given during unshading have no effect + * on the changed appearance of the window. */ + this->SetShaded(false); + } else { + this->ReInit(); + } break; case CFW_INCREASE_LOAN: // increase loan |