Skip to content

Commit 49b2b2f

Browse files
committed
feat: bump Nucleus to 2.0.3 and opt the demo into dockIconFollowsWindows
Nucleus 2.0.3 adds nucleusApplication(dockIconFollowsWindows), which keeps a tray-only app out of the macOS Dock and shows the icon only while a real DecoratedWindow is visible. TrayAppDemo opts in to exercise it.
1 parent 93a6a97 commit 49b2b2f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

demo/src/jvmMain/kotlin/dev/nucleusframework/composenativetray/demo/TrayAppDemo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import org.jetbrains.compose.resources.painterResource
3333
@OptIn(ExperimentalTrayAppApi::class)
3434
fun main() {
3535
allowComposeNativeTrayLogging = true
36-
nucleusApplication {
36+
nucleusApplication(dockIconFollowsWindows = true) {
3737
var isWindowVisible by remember { mutableStateOf(true) }
3838
val coroutineScope = rememberCoroutineScope()
3939

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ kotlinx-coroutines = "1.11.0"
55
compose = "1.11.1"
66
detekt = "1.23.8"
77
ktlint = "12.1.2"
8-
nucleus = "2.0.0-alpha-202607120617"
9-
nucleus-plugin = "2.0.0-alpha-202607120617"
8+
nucleus = "2.0.3"
9+
nucleus-plugin = "2.0.3"
1010

1111
[libraries]
1212
kermit = { module = "co.touchlab:kermit", version.ref = "kermit" }

0 commit comments

Comments
 (0)