From cd97c30befbd62a7e96172048e90c1e0fa0b60e4 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Sat, 24 Aug 2024 02:54:01 +0300 Subject: [PATCH] fix minor issue --- src/manual_partitioning_page/func.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/manual_partitioning_page/func.rs b/src/manual_partitioning_page/func.rs index 20e54a5..5ad7ac6 100644 --- a/src/manual_partitioning_page/func.rs +++ b/src/manual_partitioning_page/func.rs @@ -1019,9 +1019,10 @@ fn post_check_drive_mount( && *partition_row_struct.never.borrow() == false && *partition_row_struct.hardcode_fs_error.borrow() == false { - if *partition_row_struct.swap_fs_error.borrow() == false { + if partition.part_fs != "linux-swap" || partition.part_fs != "swap" { partition_row_struct.widget.set_sensitive(true); } else { + (*partition_row_struct.swap_fs_error.borrow_mut()) = true; null_checkbutton.set_active(true); row.set_partition(""); partition_changed_action.activate(None);