fix: configure window in the idle time, so it stays in sync and prevents crash

This commit is contained in:
Ashley Wulber 2021-12-23 13:49:11 -05:00
parent 195470c4e0
commit d5e042e822
2 changed files with 89 additions and 81 deletions

View file

@ -135,10 +135,10 @@ fn main() {
.call_method(Some(DEST), PATH, Some(DEST), "WindowFocus", &((e,)))
.await
.expect("Failed to focus selected window");
dbg!(_activate_window);
}
Event::RefreshFromCache => {
//TODO refresh the model from cached_results (required after DnD for example)
// alternatively dnd source could be changed depending on the context?
}
Event::WindowList(mut results) => {
// sort to make comparison with cache easier