From ee03e07325891118acd823409055223ed92ce04a Mon Sep 17 00:00:00 2001 From: lxsang Date: Wed, 31 Mar 2021 23:56:29 +0200 Subject: [PATCH] fix setting save bug --- src/core/settings.ts | 79 +++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 41 deletions(-) diff --git a/src/core/settings.ts b/src/core/settings.ts index bc46bbe..d8a08b3 100644 --- a/src/core/settings.ts +++ b/src/core/settings.ts @@ -530,47 +530,44 @@ namespace OS { }; } - if(!setting.applications.categories) - { - setting.applications.categories = [ - { - text: "__(Media)", - iconclass: "bi bi-disc" - }, - { - text: "__(Development)", - iconclass: "bi bi-hammer" - }, - { - text: "__(Education)", - iconclass: "fa fa-graduation-cap" - }, - { - text: "__(Game)", - iconclass: "fa fa-gamepad" - }, - { - text: "__(Graphics)", - iconclass: "bi bi-palette-fill" - }, - { - text: "__(Internet)", - iconclass: "fa fa-globe" - }, - { - text: "__(Office)", - iconclass: "bi bi-building" - }, - { - text: "__(System)", - iconclass: "fa bi-gear-wide-connected" - }, - { - text: "__(Utility)", - iconclass: "bi bi-tools" - }, - ] - } + setting.applications.categories = [ + { + text: "__(Media)", + iconclass: "bi bi-disc" + }, + { + text: "__(Development)", + iconclass: "bi bi-hammer" + }, + { + text: "__(Education)", + iconclass: "fa fa-graduation-cap" + }, + { + text: "__(Game)", + iconclass: "fa fa-gamepad" + }, + { + text: "__(Graphics)", + iconclass: "bi bi-palette-fill" + }, + { + text: "__(Internet)", + iconclass: "fa fa-globe" + }, + { + text: "__(Office)", + iconclass: "bi bi-building" + }, + { + text: "__(System)", + iconclass: "fa bi-gear-wide-connected" + }, + { + text: "__(Utility)", + iconclass: "bi bi-tools" + }, + ] } // Register handle for application search