EGD-2180 Issue with gui::ShowMode

This commit is contained in:
Alek
2019-10-15 23:11:02 +02:00
parent d430ca6b14
commit 006bc3d129
34 changed files with 82 additions and 75 deletions

View File

@@ -91,7 +91,7 @@ NotesEditWindow::~NotesEditWindow() {
destroyInterface();
}
void NotesEditWindow::onBeforeShow( ShowMode mode, uint32_t command, SwitchData* data ) {
void NotesEditWindow::onBeforeShow( ShowMode mode, SwitchData* data ) {
application->setKeyboardProfile( "lang_eng_lower" );
text->setText( textString );
setFocusItem( text );
@@ -118,7 +118,7 @@ bool NotesEditWindow::onInput( const InputEvent& inputEvent ) {
LOG_INFO("Enter pressed");
}
else if( inputEvent.keyCode == KeyCode::KEY_RF ) {
application->switchWindow( "MainWindow", 0, nullptr );
application->switchWindow( "MainWindow", gui::ShowMode::GUI_SHOW_RETURN );
return true;
}