apprt/gtk: use adwaita toasts regardless of gtk-titlebar

Signed-off-by: Tristan Partin <tristan@partin.io>
This commit is contained in:
Tristan Partin
2024-09-16 15:36:10 -05:00
parent 46fb3d8c9f
commit 4f2c1d1b10

View File

@ -210,7 +210,7 @@ pub fn init(self: *Window, app: *App) !void {
self.notebook = Notebook.create(self);
// Setup our toast overlay if we have one
self.toast_overlay = if (self.isAdwWindow()) toast: {
self.toast_overlay = if (adwaita.enabled(&self.app.config)) toast: {
const toast_overlay = c.adw_toast_overlay_new();
c.adw_toast_overlay_set_child(
@ptrCast(toast_overlay),