mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-23 14:24:18 -04:00
Brightness settings fixes 2.0 (#1870)
* Format
* Fix startup crash 🙈
* Revert "Revert "Brightness settings fixes" (#1865)"
Had to rebase then revert the revert to make git recognise and merge the change :)
This reverts commit b7e5bedf4b
.
# Conflicts:
# firmware/application/ui_navigation.cpp
* Add zxkmm to header too
This commit is contained in:
parent
f80c28cde7
commit
fd03bb800c
3 changed files with 12 additions and 18 deletions
|
@ -763,12 +763,10 @@ SetFakeBrightnessView::SetFakeBrightnessView(NavigationView& nav) {
|
|||
field_fake_brightness.set_by_value(pmem::fake_brightness_level());
|
||||
checkbox_brightness_switch.set_value(pmem::apply_fake_brightness());
|
||||
|
||||
checkbox_brightness_switch.on_select = [this](Checkbox&, bool v) {
|
||||
pmem::set_apply_fake_brightness(v);
|
||||
};
|
||||
|
||||
button_save.on_select = [&nav, this](Button&) {
|
||||
pmem::set_apply_fake_brightness(checkbox_brightness_switch.value());
|
||||
pmem::set_fake_brightness_level(field_fake_brightness.selected_index_value());
|
||||
send_system_refresh();
|
||||
nav.pop();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue