mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-20 15:35:05 +00:00
Fix for bug
This commit is contained in:
parent
017b6504ff
commit
5013c1da25
@ -2,7 +2,6 @@
|
|||||||
#include "Tactility/app/AppRegistration.h"
|
#include "Tactility/app/AppRegistration.h"
|
||||||
#include "Tactility/service/loader/Loader.h"
|
#include "Tactility/service/loader/Loader.h"
|
||||||
|
|
||||||
#include <Tactility/Check.h>
|
|
||||||
#include <Tactility/Tactility.h>
|
#include <Tactility/Tactility.h>
|
||||||
|
|
||||||
#include <lvgl.h>
|
#include <lvgl.h>
|
||||||
@ -56,13 +55,10 @@ class LauncherApp : public App {
|
|||||||
|
|
||||||
void onCreate(TT_UNUSED AppContext& app) override {
|
void onCreate(TT_UNUSED AppContext& app) override {
|
||||||
BootProperties boot_properties;
|
BootProperties boot_properties;
|
||||||
if (!loadBootProperties(boot_properties) || boot_properties.autoStartAppId.empty()) {
|
if (loadBootProperties(boot_properties) && !boot_properties.autoStartAppId.empty()) {
|
||||||
stop();
|
TT_LOG_I(TAG, "Starting %s", boot_properties.autoStartAppId.c_str());
|
||||||
return;
|
service::loader::startApp(boot_properties.autoStartAppId);
|
||||||
}
|
}
|
||||||
|
|
||||||
TT_LOG_I(TAG, "Starting %s", boot_properties.autoStartAppId.c_str());
|
|
||||||
service::loader::startApp(boot_properties.autoStartAppId);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void onShow(TT_UNUSED AppContext& app, lv_obj_t* parent) override {
|
void onShow(TT_UNUSED AppContext& app, lv_obj_t* parent) override {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user