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

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2026-04-14 00:31:23 +05:00
parent b230645d53
commit d5db0c6c1b
No known key found for this signature in database
GPG key ID: B77C34313AEE1FFF

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());