use anyhow::Result;
pub(crate) struct UpdateState {
pub(crate) show_dialog: bool,
pub(crate) last_result: Option<par_term_update::update_checker::UpdateCheckResult>,
pub(crate) installation_type: par_term_settings_ui::InstallationType,
pub(crate) installing: bool,
pub(crate) install_status: Option<String>,
pub(crate) install_receiver: Option<
std::sync::mpsc::Receiver<Result<par_term_update::self_updater::UpdateResult, String>>,
>,
}
impl Default for UpdateState {
fn default() -> Self {
Self {
show_dialog: false,
last_result: None,
installation_type: par_term_settings_ui::InstallationType::StandaloneBinary,
installing: false,
install_status: None,
install_receiver: None,
}
}
}