From 8c83cce40d0c1aea2ed69747b394c8ea1845dfe2 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 23 Jul 2023 16:56:49 +0700 Subject: [PATCH] Add close buttons to matter task monitor --- .../mc/otm/client/screen/matter/MatterPanelScreen.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/matter/MatterPanelScreen.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/matter/MatterPanelScreen.kt index 0ac028c7d..2e0462994 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/matter/MatterPanelScreen.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/matter/MatterPanelScreen.kt @@ -253,7 +253,7 @@ class MatterPanelScreen( private fun openTask(task: IReplicationTask<*>): FramePanel { val frame = FramePanel.padded(this, null, 170f, 20f, TranslatableComponent("otm.gui.matter_panel.task")) - frame.closeOnEscape = true + frame.behaveAsWindow() object : AbstractSlotPanel(this@MatterPanelScreen, frame) { init { @@ -299,7 +299,7 @@ class MatterPanelScreen( private fun openPattern(pattern: IPatternState): FramePanel { val frame = FramePanel.padded(this, null, 213f, (ButtonPanel.HEIGHT + 3f) * 4f + 38f, TranslatableComponent("otm.gui.matter_panel.task")) - frame.closeOnEscape = true + frame.behaveAsWindow() val rowTop = EditablePanel(this, frame, height = ButtonPanel.HEIGHT) val rowInput = EditablePanel(this, frame, height = ButtonPanel.HEIGHT)