From a256e6e7644397c78f7db6348d7a764b5959730f Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Mon, 25 Mar 2024 23:01:23 -0700 Subject: [PATCH] Disable finalization options when imaging --- scripts/wk/clone/ddrescue.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/wk/clone/ddrescue.py b/scripts/wk/clone/ddrescue.py index 0554c570..c0bdd7a3 100644 --- a/scripts/wk/clone/ddrescue.py +++ b/scripts/wk/clone/ddrescue.py @@ -218,6 +218,9 @@ def finalize_recovery(state: State, dry_run: bool = True) -> None: if 'GPT' in name and disable_gpt_option: details['Disabled'] = True details['Selected'] = False + if state.mode == 'Image': + details['Disabled'] = True + details['Selected'] = False menu.add_option(name, details) # Show menu