Skip to content

Commit

Permalink
Disable generate report button if there are on-going actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu authored and trumank committed Aug 17, 2023
1 parent dbc4600 commit 381abb5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/gui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,15 @@ impl App {
self.lints_toggle_window = None;
}

if ui.button("Generate report").clicked() {
if ui
.add_enabled(
self.check_updates_rid.is_none()
&& self.integrate_rid.is_none()
&& self.lint_rid.is_none(),
egui::Button::new("Generate report"),
)
.clicked()
{
let lint_options = BTreeMap::from([
(
LintId::ARCHIVE_WITH_MULTIPLE_PAKS,
Expand Down

0 comments on commit 381abb5

Please sign in to comment.