shell-w2: drop the stale finished read left by the review fix

This commit is contained in:
Martin Ball
2026-11-18 12:22:48 +00:00
parent 34d9f5b333
commit 0bc3e87d3d
-3
View File
@@ -363,9 +363,6 @@ impl FileChooser {
/// Shows one pass: the chooser, and over it the Replace question while one is open.
fn present(&mut self, ui: &mut Ui) -> Option<DialogResult<Answer>> {
if let Some(done) = self.finished.take() {
return Some(done);
}
// Folders are not watched, so the listings go stale when the window regains focus, as the places tree's do:
// files changed in another app show on return. egui-winit sends `WindowFocused` from
// `State::on_window_event` (`WindowEvent::Focused`), and only to a frame's first pass, so a second pass does not