From d3fa128d5408673b0ea8d3ba3435c38b258a5e7a Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sat, 5 Jun 2021 14:58:09 -0700 Subject: Merge UIState into GlobalStates --- core/src/UI/UI_DatabaseView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/src/UI/UI_DatabaseView.cpp') diff --git a/core/src/UI/UI_DatabaseView.cpp b/core/src/UI/UI_DatabaseView.cpp index 06326ae..bd0efa5 100644 --- a/core/src/UI/UI_DatabaseView.cpp +++ b/core/src/UI/UI_DatabaseView.cpp @@ -1,9 +1,9 @@ #include "UI.hpp" #include "Model/Filter.hpp" +#include "Model/GlobalStates.hpp" #include "Model/Project.hpp" #include "UI/Localization.hpp" -#include "UI/States.hpp" #include "Utils/ScopeGuard.hpp" #include "Utils/Time.hpp" @@ -650,14 +650,14 @@ public: void UI::DatabaseViewTab() { auto ls = LocaleStrings::Instance.get(); - auto& uis = UIState::GetInstance(); + auto& gs = GlobalStates::GetInstance(); static Project* currentProject = nullptr; static SalesTableView sales; static PurchasesTableView purchases; - if (currentProject != uis.CurrentProject.get()) { - currentProject = uis.CurrentProject.get(); + if (currentProject != gs.GetCurrentProject()) { + currentProject = gs.GetCurrentProject(); sales.OnProjectChanged(currentProject); purchases.OnProjectChanged(currentProject); } -- cgit v1.2.3-70-g09d2