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:
parent
01b7b6744e
commit
a949073728
|
@ -31,6 +31,7 @@
|
|||
"WASD",
|
||||
"Wojnarowski",
|
||||
"andys",
|
||||
"armhf",
|
||||
"armv",
|
||||
"atim",
|
||||
"choco",
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue