Fix broken window.connect_delete_event

It was never called with the original configuration
This commit is contained in:
Julian Hofer
2020-06-19 09:51:35 +00:00
committed by Jordan Petridis
parent 2ee2181211
commit 08be9bdb4e
+1 -1
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);