apprt/gtk: fix non-libadw builds

This commit is contained in:
Mitchell Hashimoto
2024-09-16 15:08:34 -07:00
parent 2ad4dcdc01
commit fca7ceed03

View File

@ -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);