fix(color): preview not removed in SD manager after image file deleted (#5655)

This commit is contained in:
philmoz
2024-11-09 12:05:28 +10:00
committed by GitHub
parent 366df6080e
commit 314e93a381
@@ -529,6 +529,9 @@ void RadioSdManagerPage::fileAction(const char* path, const char* name,
menu->addLine(STR_DELETE_FILE, [=]() {
f_unlink(fullpath);
browser->refresh();
loadPreview = 0;
preview->setFile(nullptr);
loading->hide();
});
}