Skip to content

Commit a6a92e6

Browse files
committed
Remove redundant invisible DialogWindow definition in TrayApp
- Eliminated unused code for maintaining a cleaner and more maintainable codebase. - Updated the remaining `DialogWindow` logic for explicit dismissal requests.
1 parent 24bb964 commit a6a92e6

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

  • src/commonMain/kotlin/com/kdroid/composetray/tray/api

src/commonMain/kotlin/com/kdroid/composetray/tray/api/TrayApp.kt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -609,20 +609,6 @@ private fun ApplicationScope.TrayAppImplLinux(
609609

610610
DisposableEffect(Unit) { onDispose { tray.dispose() } }
611611

612-
// Helper window
613-
DialogWindow(
614-
onCloseRequest = { /* noop */ },
615-
visible = false,
616-
state = rememberDialogState(
617-
size = DpSize(1.dp, 1.dp),
618-
position = WindowPosition(0.dp, 0.dp)
619-
),
620-
transparent = true,
621-
undecorated = true,
622-
resizable = false,
623-
focusable = false,
624-
) { }
625-
626612
DialogWindow(
627613
onCloseRequest = { requestHideExplicit() },
628614
title = "",

0 commit comments

Comments
 (0)