File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,16 @@ navCmd navRoot::exit() {
197197 return escCmd;
198198}
199199
200+ bool navRoot::changed (const menuOut& out) {
201+ if (sleepTask) return idleChanged;
202+ if (node ().changed (out)) {
203+ lastChanged=millis ();
204+ return true ;
205+ } else if (canExit&&timeOut&&(millis ()-lastChanged)/1000 >timeOut) idleOn (idleTask);
206+ return false ;
207+ }
208+
209+
200210#ifdef MENU_ASYNC
201211// prompt* navRoot::seek(char* uri) {
202212// StringStream s(uri);
Original file line number Diff line number Diff line change 121121 inline navNode& node () const {return path[level];}
122122 inline menuNode& active () const {return *node ().target ;}
123123 inline prompt& selected () const {return active ()[node ().sel ];}
124- bool changed (const menuOut& out) {
125- if (sleepTask) return idleChanged;
126- if (node ().changed (out)) {
127- lastChanged=millis ();
128- return true ;
129- } else if (timeOut&&(millis ()-lastChanged)/1000 >timeOut) idleOn (idleTask);
130- return false ;
131- }
124+ bool changed (const menuOut& out);
132125 inline bool changed (idx_t n) {return changed (out[n]);}
133126 #ifdef MENU_ASYNC
134127 void escTo (idx_t lvl);
You can’t perform that action at this time.
0 commit comments