[AppManagement] Getting through previus windows by list

* removed first main window as first window in call app
* moved window switching to application from window
This commit is contained in:
Adam Dobrowolski
2020-01-02 13:58:30 +01:00
committed by pholat
parent 2406e06a3d
commit 26a98bce1e
26 changed files with 261 additions and 170 deletions

View File

@@ -41,9 +41,9 @@ sys::Message_t ApplicationNotes::DataReceivedHandler(sys::DataMessage* msgl,sys:
uint32_t msgType = resp->responseTo;
switch( msgType ) {
case static_cast<uint32_t>(MessageType::DBNotesGetLimitOffset): {
if( currentWindow->onDatabaseMessage( resp ) )
refreshWindow( gui::RefreshModes::GUI_REFRESH_FAST );
}break;
if (getCurrentWindow()->onDatabaseMessage(resp))
refreshWindow(gui::RefreshModes::GUI_REFRESH_FAST);
}break;
}
}
@@ -62,9 +62,9 @@ sys::ReturnCodes ApplicationNotes::InitHandler() {
createUserInterface();
setActiveWindow("MainWindow");
setActiveWindow(gui::name::window::main_window);
return ret;
return ret;
}
sys::ReturnCodes ApplicationNotes::DeinitHandler() {