From 617ad923d2242042b561a9772295a7b28ea71577 Mon Sep 17 00:00:00 2001 From: axtlos Date: Mon, 25 Apr 2022 21:22:46 +0200 Subject: [PATCH] fix option to select bootloader for legacy --- lib/functions/partitioning/manual.dart | 4 ++-- lib/main.dart | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/functions/partitioning/manual.dart b/lib/functions/partitioning/manual.dart index 827bc3c..c68909e 100644 --- a/lib/functions/partitioning/manual.dart +++ b/lib/functions/partitioning/manual.dart @@ -219,7 +219,7 @@ Widget manualPartitioning( ), ), Visibility( - visible: efi, + visible: !efi, child: const Text( 'Bootloader Device:', style: TextStyle( @@ -231,7 +231,7 @@ Widget manualPartitioning( ), const SizedBox(height: 6), Visibility( - visible: efi, + visible: !efi, child: Container( padding: const EdgeInsets.fromLTRB(5, 2, 2, 5), decoration: BoxDecoration( diff --git a/lib/main.dart b/lib/main.dart index e2dc7ec..5109ae3 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -647,6 +647,9 @@ class _JadeguiState extends State { partition.mountpoint = value; print("moutnpoint: ${partition.mountpoint}"); print("partition: ${partition.partition}"); + if (value == "/boot/efi") { + partition.type = "vfat"; + } }); }, (partition, value) {