From fac0ae7bb64f5c70c2ef42767b0a9f4ff0f9cc95 Mon Sep 17 00:00:00 2001 From: axtlos Date: Wed, 27 Apr 2022 19:13:40 +0200 Subject: [PATCH] fix bootloader device selection not hiding when uefi --- jade_log.txt | 3 ++- lib/main.dart | 26 +++++++++++++------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/jade_log.txt b/jade_log.txt index 4e410ef..a1b8118 100644 --- a/jade_log.txt +++ b/jade_log.txt @@ -1,2 +1,3 @@ -Selected disk: /dev/nvme0n1 \ No newline at end of file +Disks:widget /dev/sda +/dev/nvme0n1 diff --git a/lib/main.dart b/lib/main.dart index e7b4106..861686d 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -572,6 +572,19 @@ class _JadeguiState extends State { ); break; case 6: + checkIsEfi( + (value) { + setState(() { + isEfi = value; + }); + writeToLog("Is efi: $isEfi"); + }, + runningEfi, + () { + setState(() { + runningEfi = true; + }); + }); widget = SizedBox.expand( child: FittedBox( fit: BoxFit.contain, @@ -665,19 +678,6 @@ class _JadeguiState extends State { ); break; case 7: - checkIsEfi( - (value) { - setState(() { - isEfi = value; - }); - writeToLog("Is efi: $isEfi"); - }, - runningEfi, - () { - setState(() { - runningEfi = true; - }); - }); widget = SizedBox.expand( child: FittedBox( fit: BoxFit.contain,