mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 12:48:35 -07:00
VarItemList change locked state without new msg
This commit is contained in:
@@ -594,9 +594,10 @@ void variable_item_set_current_value_text(VariableItem* item, const char* curren
|
|||||||
|
|
||||||
void variable_item_set_locked(VariableItem* item, bool locked, const char* locked_message) {
|
void variable_item_set_locked(VariableItem* item, bool locked, const char* locked_message) {
|
||||||
item->locked = locked;
|
item->locked = locked;
|
||||||
if(locked) {
|
if(locked_message) {
|
||||||
furi_assert(locked_message);
|
|
||||||
furi_string_set(item->locked_message, locked_message);
|
furi_string_set(item->locked_message, locked_message);
|
||||||
|
} else if(locked && furi_string_empty(item->locked_message)) {
|
||||||
|
furi_string_set(item->locked_message, "Locked!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user