1
0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-05 20:26:52 +00:00

nyx: Fix emummc slider when there's not enough space

This commit is contained in:
CTCaer 2020-05-05 19:28:15 +03:00
parent bc7c65447d
commit 3e5ef39686

View File

@ -1579,7 +1579,23 @@ static lv_res_t _action_slider_emu(lv_obj_t *slider)
lv_label_set_text(part_info.lbl_emu, lbl_text);
}
else
lv_slider_set_value(slider, 0);
{
int new_slider_val;
switch (part_info.emu_size)
{
case 29856:
new_slider_val = 1;
break;
case 59712:
new_slider_val = 2;
break;
case 0:
default:
new_slider_val = 0;
break;
}
lv_slider_set_value(slider, new_slider_val);
}
_update_partition_bar();