Fix building with distro feature enabled

Outdated code behind a macro
This commit is contained in:
LJ 2024-11-27 19:00:58 +00:00 committed by GitHub
parent 2b49c4c0a3
commit 037b3bbe66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,7 +46,7 @@ impl Gupax {
// If [Gupax] is being built for a Linux distro,
// disable built-in updating completely.
#[cfg(feature = "distro")]
ui.disable(true);
ui.disable();
#[cfg(feature = "distro")]
ui.add_sized([width, button], Button::new("Updates are disabled"))
.on_disabled_hover_text(DISTRO_NO_UPDATE);