From 05f450f23e972d5591929cfffc88bc7a93fe1e98 Mon Sep 17 00:00:00 2001 From: James Rich Date: Tue, 24 Mar 2026 12:13:34 -0500 Subject: [PATCH] refactor: Remove AlertHost and AlertManager from desktop entry point - Remove `AlertManager` dependency and its initialization within the `Main` composition. - Remove the `AlertHost` component from the top-level UI tree in `Main.kt`. --- desktop/src/main/kotlin/org/meshtastic/desktop/Main.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/desktop/src/main/kotlin/org/meshtastic/desktop/Main.kt b/desktop/src/main/kotlin/org/meshtastic/desktop/Main.kt index 3c80f8189..6012c3d27 100644 --- a/desktop/src/main/kotlin/org/meshtastic/desktop/Main.kt +++ b/desktop/src/main/kotlin/org/meshtastic/desktop/Main.kt @@ -174,7 +174,6 @@ fun main(args: Array) = application(exitProcessOnExit = false) { var isWindowReady by remember { mutableStateOf(false) } val appIcon = classpathPainterResource("icon.png") - val alertManager = remember { koinApp.koin.get() } val desktopPrefs = remember { koinApp.koin.get() } val windowState = rememberWindowState() @@ -298,7 +297,6 @@ fun main(args: Array) = application(exitProcessOnExit = false) { // preserves remembered state (including the navigation backstack). CompositionLocalProvider(LocalAppLocale provides localePref) { AppTheme(darkTheme = isDarkTheme) { - org.meshtastic.core.ui.component.AlertHost(alertManager) DesktopMainScreen(backStack) } }