mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 17:26:09 +03:00
Merge pull request #2237 from jcollie/adw-overview-zero-tabs
adw: allow creating new tabs in a tab overview with no open tabs
This commit is contained in:
@ -444,7 +444,7 @@ fn gtkNewTabFromOverview(_: *c.GtkWidget, ud: ?*anyopaque) callconv(.C) ?*c.GObj
|
|||||||
assert(self.isAdwWindow());
|
assert(self.isAdwWindow());
|
||||||
|
|
||||||
const alloc = self.app.core_app.alloc;
|
const alloc = self.app.core_app.alloc;
|
||||||
const surface = self.actionSurface() orelse return null;
|
const surface = self.actionSurface();
|
||||||
const tab = Tab.create(alloc, self, surface) catch return null;
|
const tab = Tab.create(alloc, self, surface) catch return null;
|
||||||
return tab.adw_tab_page;
|
return tab.adw_tab_page;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user