MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / onCreate

Method onCreate

Tactility/Source/app/notes/Notes.cpp:114–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112#pragma endregion Open_Events_Functions
113
114 void onCreate(AppContext& appContext) override {
115 auto parameters = appContext.getParameters();
116 std::string file_path;
117 if (parameters != nullptr && parameters->optString(NOTES_FILE_ARGUMENT, file_path)) {
118 if (!file_path.empty()) {
119 filePath = file_path;
120 }
121 }
122 }
123 void onShow(AppContext& context, lv_obj_t* parent) override {
124 lv_obj_remove_flag(parent, LV_OBJ_FLAG_SCROLLABLE);
125 lv_obj_set_flex_flow(parent, LV_FLEX_FLOW_COLUMN);

Callers

nothing calls this directly

Calls 2

getParametersMethod · 0.80
optStringMethod · 0.45

Tested by

no test coverage detected