fix(dtmm): Disable update check when there is no API key

Ref: #71.
This commit is contained in:
Lucas Schwiderski 2023-03-16 09:19:40 +01:00
parent 8705c3b9ac
commit 60780656cf
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8

View file

@ -54,7 +54,7 @@ fn build_top_bar() -> impl Widget<State> {
.on_click(|ctx, _: &mut State, _| {
ctx.submit_command(ACTION_START_CHECK_UPDATE);
})
.disabled_if(|data, _| data.is_update_in_progress);
.disabled_if(|data, _| data.nexus_api_key.is_empty() || data.is_update_in_progress);
let deploy_button = {
let icon = Svg::new(SvgData::from_str(theme::icons::ALERT_CIRCLE).expect("invalid SVG"))