Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

partitions: Use ≥ for min partition size #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ui/pages/partitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = &gtk::CheckButton {
set_group: Some(&self.group),
Expand Down