fix(color): preview not removed in SD manager after image file deleted (#5655)
This commit is contained in:
@@ -529,6 +529,9 @@ void RadioSdManagerPage::fileAction(const char* path, const char* name,
|
|||||||
menu->addLine(STR_DELETE_FILE, [=]() {
|
menu->addLine(STR_DELETE_FILE, [=]() {
|
||||||
f_unlink(fullpath);
|
f_unlink(fullpath);
|
||||||
browser->refresh();
|
browser->refresh();
|
||||||
|
loadPreview = 0;
|
||||||
|
preview->setFile(nullptr);
|
||||||
|
loading->hide();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user