mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: correctly save terminal fullscreen style
This commit is contained in:

committed by
Jonathan Lopez

parent
2ba929acac
commit
2584468276
@ -309,11 +309,11 @@ class BaseTerminalController: NSWindowController,
|
|||||||
// We consider our mode changed if the types change (obvious) but
|
// We consider our mode changed if the types change (obvious) but
|
||||||
// also if its nil (not obvious) because nil means that the style has
|
// also if its nil (not obvious) because nil means that the style has
|
||||||
// likely changed but we don't support it.
|
// likely changed but we don't support it.
|
||||||
if newStyle == nil || type(of: newStyle) != type(of: oldStyle) {
|
if newStyle == nil || type(of: newStyle!) != type(of: oldStyle) {
|
||||||
// Our mode changed. Exit fullscreen (since we're toggling anyways)
|
// Our mode changed. Exit fullscreen (since we're toggling anyways)
|
||||||
// and then unset the style so that we replace it next time.
|
// and then set the new style for future use
|
||||||
oldStyle.exit()
|
oldStyle.exit()
|
||||||
self.fullscreenStyle = nil
|
self.fullscreenStyle = newStyle
|
||||||
|
|
||||||
// We're done
|
// We're done
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user