mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-04 12:27:49 +00:00
apprt/gtk: fix non-libadw builds
This commit is contained in:
@@ -485,6 +485,7 @@ pub fn onConfigReloaded(self: *Window) void {
|
||||
}
|
||||
|
||||
fn sendToast(self: *Window, title: [:0]const u8) void {
|
||||
if (comptime !adwaita.versionAtLeast(0, 0, 0)) return;
|
||||
const toast_overlay = self.toast_overlay orelse return;
|
||||
const toast = c.adw_toast_new(title);
|
||||
c.adw_toast_set_timeout(toast, 3);
|
||||
|
||||
Reference in New Issue
Block a user