From 55633edbd6b4ae2e7d0dae682ac41035274c3b71 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 30 Jun 2024 21:27:53 +0200 Subject: [PATCH] =?UTF-8?q?partitions:=20Use=20=E2=89=A5=20for=20min=20par?= =?UTF-8?q?tition=20size?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise, we will be unable to install it in GNOME Boxes with the default NixOS hardware preset of 20 GiB. --- src/ui/pages/partitions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/pages/partitions.rs b/src/ui/pages/partitions.rs index d64524c..aca60c7 100644 --- a/src/ui/pages/partitions.rs +++ b/src/ui/pages/partitions.rs @@ -549,9 +549,9 @@ impl FactoryComponent for WholeDisk { #[watch] // Translators: Do NOT translate the '{}' // The string reads "{/dev/sdX} (20 GB minimum needed)" indicating that the given disk is not large enough - set_subtitle: &if self.size > 21_474_836_480 { size::Size::from_bytes(self.size).to_string() } else { i18n_f("{} (20 GB minimum needed)", &[&size::Size::from_bytes(self.size).to_string()]) }, + set_subtitle: &if self.size >= 21_474_836_480 { size::Size::from_bytes(self.size).to_string() } else { i18n_f("{} (20 GB minimum needed)", &[&size::Size::from_bytes(self.size).to_string()]) }, set_activatable: true, - set_sensitive: self.size > 21_474_836_480, // 20GB + set_sensitive: self.size >= 21_474_836_480, // 20GB #[name(checkbtn)] add_suffix = >k::CheckButton { set_group: Some(&self.group),