fix: title not showing on Linux

(cherry picked from commit 071a091347)
This commit is contained in:
hstyi
2025-06-16 09:17:14 +08:00
committed by hstyi
parent 6f9cfc3b32
commit 866c823c30

View File

@@ -45,7 +45,7 @@ class TermoraFrameManager : Disposable {
fun createWindow(): TermoraFrame { fun createWindow(): TermoraFrame {
val frame = TermoraFrame().apply { registerCloseCallback(this) } val frame = TermoraFrame().apply { registerCloseCallback(this) }
frame.title = if (SystemInfo.isLinux) null else Application.getName() frame.title = Application.getName()
frame.defaultCloseOperation = DO_NOTHING_ON_CLOSE frame.defaultCloseOperation = DO_NOTHING_ON_CLOSE
val rectangle = getFrameRectangle() ?: FrameRectangle(-1, -1, 1280, 800, 0) val rectangle = getFrameRectangle() ?: FrameRectangle(-1, -1, 1280, 800, 0)