ソースを参照

background fixes

milan jurkulák 2 年 前
親
コミット
56398e5762

+ 2 - 2
src/main/kotlin/eu/mjdev/desktop/provider/data/DesktopConfig.kt

@@ -7,10 +7,10 @@ class DesktopConfig(
     desktopBackgroundUrls: List<Any> = emptyList()
 ) {
     val desktopBackgroundUrlsState = mutableStateOf(desktopBackgroundUrls.toMutableList())
-    val desktopBackgroundUrls get() = desktopBackgroundUrlsState.value
+    val desktopBackgrounds get() = desktopBackgroundUrlsState.value
 
     fun addBackground(path: String) {
-        desktopBackgroundUrls.add(path)
+        desktopBackgrounds.add(path)
     }
 
     companion object {

+ 1 - 2
src/main/kotlin/eu/mjdev/desktop/windows/MainWindow.kt

@@ -53,8 +53,7 @@ fun MainWindow(
                     }
                 },
             backgroundColor = api.currentUser.theme.backgroundColor,
-            backgrounds = //api.appsProvider.backgrounds +
-            api.currentUser.config.desktopBackgroundUrls,
+            backgrounds = api.appsProvider.backgrounds + api.currentUser.config.desktopBackgrounds,
             switchDelay = api.currentUser.theme.backgroundRotationDelay,
             onChange = { src ->
                 palette.apply {