Fix broken window.connect_delete_event

It was never called with the original configuration
This commit is contained in:
Julian Hofer 2020-03-22 17:50:38 +01:00 committed by Jordan Petridis
parent 2ee2181211
commit 08be9bdb4e

View File

@ -85,7 +85,7 @@ impl MainWindow {
}
window.connect_delete_event(
clone!(@weak settings, @weak app => @default-return Inhibit(false), move |window, _| {
clone!(@strong settings, @weak app => @default-return Inhibit(false), move |window, _| {
info!("Saving window position");
WindowGeometry::from_window(&window).write(&settings);