fix minor issue

This commit is contained in:
Ward from fusion-voyager-3 2024-08-24 02:54:01 +03:00
parent f05321f3b6
commit cd97c30bef

View File

@ -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);