Refactor app loading and window management (#609)
This commit is contained in:
committed by
GitHub
parent
dc3f6104b8
commit
37c507544b
@@ -133,7 +133,7 @@ static void statusbar_constructor(const lv_obj_class_t* class_p, lv_obj_t* obj)
|
||||
|
||||
if (!statusbar_data.time_update_timer->isRunning()) {
|
||||
statusbar_data.time_update_timer->start();
|
||||
system_event_subscribe(KERNEL_EVENT_TIME_CHANGED, onTimeChanged, nullptr);
|
||||
system_event_callback_add(KERNEL_EVENT_TIME_CHANGED, onTimeChanged, nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1 @@
|
||||
#include <Tactility/lvgl/Toolbar.h>
|
||||
#include <Tactility/app/AppManifest.h>
|
||||
|
||||
namespace tt::lvgl {
|
||||
|
||||
lv_obj_t* toolbar_create(lv_obj_t* parent, const app::AppContext& app) {
|
||||
return lvgl_toolbar_create(parent, app.getManifest().appName.c_str());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user