Skip to content

Commit

Permalink
Merge pull request #333 from Duet3D/332-sd-card-file-list-does-not-up…
Browse files Browse the repository at this point in the history
…date-correctly-when-deleting-a-file-if-files-spread-across-more-than-one-page

UI: removed unwanted parameter test to fix hiding of deleted files in…
  • Loading branch information
mfs12 authored Mar 13, 2024
2 parents e0ffa9d + 3aae7fa commit f0f181d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/UI/UserInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3310,10 +3310,10 @@ namespace UI
{
if (filesNotMacros && text)
{
mgr.Show(fileListPopupNoFiles, false);
fileListPopupNoFiles->Show(false);
}

if (text && buttonIndex < ((filesNotMacros) ? NumDisplayedFiles : NumDisplayedMacros))
if (buttonIndex < ((filesNotMacros) ? NumDisplayedFiles : NumDisplayedMacros))
{
TextButton * const f = ((filesNotMacros) ? filenameButtons : macroButtons)[buttonIndex];
f->SetText(text);
Expand Down

0 comments on commit f0f181d

Please sign in to comment.