mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
Fix non-dynamic themes not persisting
This commit is contained in:
@@ -732,7 +732,7 @@ Singleton {
|
||||
updateGtkIconTheme(themeName)
|
||||
updateQtIconTheme(themeName)
|
||||
saveSettings()
|
||||
if (typeof Theme !== "undefined" && Theme.isDynamicTheme)
|
||||
if (typeof Theme !== "undefined" && Theme.currentTheme === Theme.dynamic)
|
||||
Theme.generateSystemThemes()
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@ Singleton {
|
||||
property bool isLightMode: false
|
||||
|
||||
readonly property string dynamic: "dynamic"
|
||||
readonly property bool isDynamicTheme: !StockThemes.isStockTheme(currentTheme)
|
||||
|
||||
readonly property string homeDir: {
|
||||
const url = StandardPaths.writableLocation(StandardPaths.HomeLocation).toString()
|
||||
@@ -328,7 +327,7 @@ Singleton {
|
||||
function onLightModeChanged() {
|
||||
if (matugenColors && Object.keys(matugenColors).length > 0) {
|
||||
colorUpdateTrigger++
|
||||
if (isDynamicTheme) {
|
||||
if (currentTheme === dynamic) {
|
||||
generateSystemThemes()
|
||||
}
|
||||
}
|
||||
@@ -353,7 +352,7 @@ Singleton {
|
||||
}
|
||||
|
||||
function generateSystemThemesFromCurrentTheme() {
|
||||
if (!isDynamicTheme)
|
||||
if (currentTheme !== dynamic)
|
||||
return
|
||||
|
||||
if (systemThemeGenerationInProgress)
|
||||
|
||||
Reference in New Issue
Block a user