mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-24 05:40:15 +00:00
fix quick-terminal breaking when it is manually toggled while autohide is enabled
This commit is contained in:
@@ -1079,7 +1079,10 @@ pub const Window = extern struct {
|
||||
// Hide quick-terminal if set to autohide
|
||||
if (self.isQuickTerminal()) {
|
||||
if (self.getConfig()) |cfg| {
|
||||
if (cfg.get().@"quick-terminal-autohide" and self.as(gtk.Window).isActive() == 0) {
|
||||
if (cfg.get().@"quick-terminal-autohide" and
|
||||
self.as(gtk.Window).isActive() == 0 and
|
||||
self.as(gtk.Widget).isVisible() == 1)
|
||||
{
|
||||
self.toggleVisibility();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user