Main view index is now in model settings (fix #4761)

This commit is contained in:
Andre Bernet
2017-04-07 19:52:28 +02:00
parent f3d56d31c0
commit db48158956
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -470,7 +470,7 @@ void menuMainView(event_t event)
#endif
case EVT_KEY_BREAK(KEY_PAGE):
storageDirty(EE_GENERAL);
storageDirty(EE_MODEL);
g_model.view += 1;
if (g_model.view >= VIEW_COUNT) {
g_model.view = 0;
+2 -2
View File
@@ -180,7 +180,7 @@ bool menuMainView(event_t event)
#elif defined(PCBX10)
case EVT_KEY_BREAK(KEY_PGDN):
#endif
storageDirty(EE_GENERAL);
storageDirty(EE_MODEL);
g_model.view = circularIncDec(g_model.view, +1, 0, getMainViewsCount()-1);
break;
@@ -189,7 +189,7 @@ bool menuMainView(event_t event)
case EVT_KEY_LONG(KEY_PGDN):
#endif
killEvents(event);
storageDirty(EE_GENERAL);
storageDirty(EE_MODEL);
g_model.view = circularIncDec(g_model.view, -1, 0, getMainViewsCount()-1);
break;