fix(SkinList): do not consider non-png files correctly

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
(cherry picked from commit d5db0c6c1b)
This commit is contained in:
Octol1ttle 2026-04-14 00:31:23 +05:00 committed by github-actions[bot]
parent 841b05b446
commit c6dc8267c1

View file

@ -121,7 +121,7 @@ bool SkinList::update()
auto folderContents = m_dir.entryInfoList();
// if there are any untracked files...
for (QFileInfo entry : folderContents) {
if (!entry.isFile() && entry.suffix() != "png")
if (!entry.isFile() || entry.suffix() != "png")
continue;
SkinModel w(entry.absoluteFilePath());