fix: building on systems with older adwaita

pull/5077/head
Michael Himing 2025-01-15 08:33:48 +11:00
parent 3cdb9a7dfe
commit 08a0423b78
1 changed files with 1 additions and 1 deletions

View File

@ -410,7 +410,7 @@ pub fn syncAppearance(self: *Window, config: *const configpkg.Config) !void {
// Disable the title buttons (close, maximize, minimize, ...) // Disable the title buttons (close, maximize, minimize, ...)
// *inside* the tab overview if CSDs are disabled. // *inside* the tab overview if CSDs are disabled.
// We do spare the search button, though. // We do spare the search button, though.
if ((comptime adwaita.versionAtLeast(0, 0, 0)) and if ((comptime adwaita.versionAtLeast(1, 4, 0)) and
adwaita.enabled(&self.app.config)) adwaita.enabled(&self.app.config))
{ {
if (self.tab_overview) |tab_overview| { if (self.tab_overview) |tab_overview| {