Darktide Mod Manager #39

Merged
lucas merged 91 commits from feat/dtmm into master 2023-03-01 22:27:42 +01:00
Showing only changes of commit a1a7e9a26e - Show all commits

View file

@ -58,7 +58,9 @@ fn build_top_bar() -> impl Widget<State> {
.on_click(|ctx, _state: &mut State, _env| { .on_click(|ctx, _state: &mut State, _env| {
ctx.submit_command(ACTION_START_DEPLOY); ctx.submit_command(ACTION_START_DEPLOY);
}) })
.disabled_if(|data, _| !data.is_deployment_in_progress), .disabled_if(|data, _| {
data.is_deployment_in_progress || data.is_reset_in_progress
}),
) )
.with_default_spacer() .with_default_spacer()
.with_child( .with_child(
@ -66,7 +68,9 @@ fn build_top_bar() -> impl Widget<State> {
.on_click(|ctx, _state: &mut State, _env| { .on_click(|ctx, _state: &mut State, _env| {
ctx.submit_command(ACTION_START_RESET_DEPLOYMENT); ctx.submit_command(ACTION_START_RESET_DEPLOYMENT);
}) })
.disabled_if(|data, _| !data.is_reset_in_progress), .disabled_if(|data, _| {
data.is_deployment_in_progress || data.is_reset_in_progress
}),
), ),
) )
.padding(theme::TOP_BAR_INSETS) .padding(theme::TOP_BAR_INSETS)