diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-05-12 06:58:44 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-05-12 06:58:44 (GMT) |
| commit | 948661c9f650d59aa05ad93855703dab86603673 (patch) | |
| tree | d4942017b5aaddde1ddfc3bfd96a34464d68106e /src/displayapp/screens/FirmwareValidation.cpp | |
| parent | 2643cda7fee510462efc4447f3ca41f568ae8bce (diff) | |
Use ..set_text_static when statically-allocated strings are used
Diffstat (limited to 'src/displayapp/screens/FirmwareValidation.cpp')
| -rw-r--r-- | src/displayapp/screens/FirmwareValidation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/displayapp/screens/FirmwareValidation.cpp b/src/displayapp/screens/FirmwareValidation.cpp index c7a5b27..16244ad 100644 --- a/src/displayapp/screens/FirmwareValidation.cpp +++ b/src/displayapp/screens/FirmwareValidation.cpp @@ -33,9 +33,9 @@ FirmwareValidation::FirmwareValidation(Pinetime::Applications::DisplayApp* app, lv_obj_set_width(labelIsValidated, 240); if (validator.IsValidated()) - lv_label_set_text(labelIsValidated, "You have already\n#00ff00 validated# this firmware#"); + lv_label_set_text_static(labelIsValidated, "You have already\n#00ff00 validated# this firmware#"); else { - lv_label_set_text(labelIsValidated, "Please #00ff00 Validate# this version or\n#ff0000 Reset# to rollback to the previous version."); + lv_label_set_text_static(labelIsValidated, "Please #00ff00 Validate# this version or\n#ff0000 Reset# to rollback to the previous version."); buttonValidate = lv_btn_create(lv_scr_act(), nullptr); buttonValidate->user_data = this; |
