Skip to content

Commit

Permalink
editing event for settings - start and stop
Browse files Browse the repository at this point in the history
  • Loading branch information
gigapod committed Apr 21, 2023
1 parent 71f3ddd commit b022022
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Flux/flxSettingsSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,7 @@ bool flxSettingsSerial::loop(void)
{
_bIsDirty=false;

on_editing.emit(1);
drawEntryBanner();

bool doSave = drawPage(_systemRoot);
Expand All @@ -1000,7 +1001,8 @@ bool flxSettingsSerial::loop(void)
flxLog_I(F("Saving System Settings."));
on_finished.emit();
}

on_editing.emit(0);

return true;
}

Expand Down
1 change: 1 addition & 0 deletions src/Flux/flxSettingsSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class flxSettingsSerial : public flxActionType<flxSettingsSerial>

// Our output event
flxSignalVoid on_finished;
flxSignalBool on_editing;

bool loop();

Expand Down

0 comments on commit b022022

Please sign in to comment.