Fixed desktop icons bug

This commit is contained in:
Prozilla 2023-12-19 13:51:53 +01:00
parent f51d938a09
commit efced37fc6
No known key found for this signature in database
GPG key ID: 5858DFE71CAF31EE

View file

@ -90,7 +90,13 @@ export const Desktop = memo(() => {
(async () => {
const settings = settingsManager.get(SettingsManager.VIRTUAL_PATHS.desktop);
settings.get("wallpaper", setWallpaper);
settings.get("show-icons", (value) => { setShowIcons(value === "true"); });
settings.get("show-icons", (value) => {
if (value != null) {
setShowIcons(value === "true");
} else {
setShowIcons(true);
}
});
settings.get("icon-size", (value) => {
if (isValidInteger(value))
setIconSize(parseInt(value));