Skip to content

Commit

Permalink
fix(color): preview not removed in SD manager after image file deleted (
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz authored Nov 9, 2024
1 parent 366df60 commit 314e93a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions radio/src/gui/colorlcd/radio/radio_sdmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}

Expand Down

0 comments on commit 314e93a

Please sign in to comment.