From b022022defa8ac62c5eeb83ad83faeb1b9ad0d83 Mon Sep 17 00:00:00 2001 From: Kirk Benell Date: Fri, 21 Apr 2023 12:31:14 -0600 Subject: [PATCH] editing event for settings - start and stop --- src/Flux/flxSettingsSerial.cpp | 4 +++- src/Flux/flxSettingsSerial.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Flux/flxSettingsSerial.cpp b/src/Flux/flxSettingsSerial.cpp index 924c2d09..a556a91e 100644 --- a/src/Flux/flxSettingsSerial.cpp +++ b/src/Flux/flxSettingsSerial.cpp @@ -983,6 +983,7 @@ bool flxSettingsSerial::loop(void) { _bIsDirty=false; + on_editing.emit(1); drawEntryBanner(); bool doSave = drawPage(_systemRoot); @@ -1000,7 +1001,8 @@ bool flxSettingsSerial::loop(void) flxLog_I(F("Saving System Settings.")); on_finished.emit(); } - + on_editing.emit(0); + return true; } diff --git a/src/Flux/flxSettingsSerial.h b/src/Flux/flxSettingsSerial.h index d289401a..3235c244 100644 --- a/src/Flux/flxSettingsSerial.h +++ b/src/Flux/flxSettingsSerial.h @@ -63,6 +63,7 @@ class flxSettingsSerial : public flxActionType // Our output event flxSignalVoid on_finished; + flxSignalBool on_editing; bool loop();