Skip to content

Commit

Permalink
Block next frame on empty platform
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanformigoni committed May 2, 2024
1 parent d9d8d8a commit b42c27f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gui/wizard/src/frame/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,12 @@ pub fn platform(tx: Sender<common::Msg>, title: &str)
let clone_tx = tx.clone();
clone_btn_next.set_callback(move |_|
{
if let Ok(guard) = PLATFORM.lock() && *guard == None
{
log!("No platform was selected");
return;
} // if

// Fetch files
clone_output_status.set_value("Fetching list of files to download");

Expand Down

0 comments on commit b42c27f

Please sign in to comment.