mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
Add more null protection for skin management
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@ -336,7 +336,11 @@ void SkinList::save()
|
||||
arr << s.toJSON();
|
||||
}
|
||||
doc["skins"] = arr;
|
||||
Json::write(doc, m_dir.absoluteFilePath("index.json"));
|
||||
try {
|
||||
Json::write(doc, m_dir.absoluteFilePath("index.json"));
|
||||
} catch (const FS::FileSystemException& e) {
|
||||
qCritical() << "Failed to write skin index file :" << e.cause();
|
||||
}
|
||||
}
|
||||
|
||||
int SkinList::getSelectedAccountSkin()
|
||||
|
Reference in New Issue
Block a user