bug: fix being able to click widgets when dd-dialog was open (#219)

Fixes a bug where you could click on a widget when dd's dialog was open.
This commit is contained in:
Clement Tsang 2020-09-02 05:00:01 -04:00 committed by GitHub
parent 01b7b6744e
commit a949073728
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,7 @@
"WASD",
"Wojnarowski",
"andys",
"armhf",
"armv",
"atim",
"choco",

View File

@ -880,6 +880,7 @@ impl App {
self.to_delete_process_list = Some(current_process);
self.delete_dialog_state.is_showing_dd = true;
self.is_determining_widget_boundary = true;
}
}
}

View File

@ -67,6 +67,7 @@ impl NetworkGraphWidget for Painter {
// Update draw loc in widget map
// Note that in both cases, we always go to the same widget id so it's fine to do it like
// this lol.
debug!("!@#!@");
if let Some(network_widget) = app_state.widget_map.get_mut(&widget_id) {
network_widget.top_left_corner = Some((draw_loc.x, draw_loc.y));
network_widget.bottom_right_corner =