mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-12 15:28:36 -07:00
Update apps
This commit is contained in:
@@ -32,6 +32,10 @@ static bool flipp_pomodoro_app_custom_event_callback(void* ctx, uint32_t event)
|
||||
return CustomEventConsumed;
|
||||
case FlippPomodoroAppCustomEventStageComplete:
|
||||
if(flipp_pomodoro__get_stage(app->state) == FlippPomodoroStageFocus) {
|
||||
// REGISTER a deed on work stage complete to get an acheivement
|
||||
dolphin_deed(DolphinDeedPluginGameWin);
|
||||
FURI_LOG_I(TAG, "Focus stage reward added");
|
||||
|
||||
flipp_pomodoro_statistics__increase_focus_stages_completed(app->statistics);
|
||||
};
|
||||
|
||||
@@ -106,9 +110,12 @@ int32_t flipp_pomodoro_app(void* p) {
|
||||
FURI_LOG_I(TAG, "Initial");
|
||||
FlippPomodoroApp* app = flipp_pomodoro_app_alloc();
|
||||
|
||||
FURI_LOG_I(TAG, "Run deed added");
|
||||
dolphin_deed(DolphinDeedPluginGameStart);
|
||||
|
||||
view_dispatcher_run(app->view_dispatcher);
|
||||
|
||||
flipp_pomodoro_app_free(app);
|
||||
|
||||
return 0;
|
||||
};
|
||||
};
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <gui/view_dispatcher.h>
|
||||
#include <gui/scene_manager.h>
|
||||
#include <gui/elements.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
#include <input/input.h>
|
||||
|
||||
// App resource imports
|
||||
|
||||
Reference in New Issue
Block a user