desktop: Fix window title after closing the file

Previously the title showed the filename in the title even after the file
had been long closed.
This commit is contained in:
sleepycatcoding 2024-03-25 21:00:24 +02:00 committed by Adrian Wielgosik
parent 1b41abf3a3
commit d4e5e54dc0
1 changed files with 1 additions and 0 deletions

View File

@ -471,6 +471,7 @@ impl App {
} }
winit::event::Event::UserEvent(RuffleEvent::CloseFile) => { winit::event::Event::UserEvent(RuffleEvent::CloseFile) => {
self.window.set_title("Ruffle"); // Reset title since file has been closed.
self.player.destroy(); self.player.destroy();
} }