fix no-gui crash if no firmware was installed

It's a bit mysterious, but the confirmation box doesn't like being called in this mode.
So let's just return false.
This commit is contained in:
Megamouse 2021-02-22 18:22:55 +01:00
parent cb7cf40b5e
commit 037586d7bb

View File

@ -358,6 +358,7 @@ void gui_application::InitializeCallbacks()
callbacks.on_missing_fw = [this]()
{
if (!m_main_window) return false;
return m_gui_settings->GetBootConfirmation(m_main_window, gui::ib_confirm_fw);
};