Fix broken window.connect_delete_event
It was never called with the original configuration
This commit is contained in:
parent
6bad2cc214
commit
296cbcfdeb
@ -85,7 +85,7 @@ impl MainWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.connect_delete_event(
|
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");
|
info!("Saving window position");
|
||||||
WindowGeometry::from_window(&window).write(&settings);
|
WindowGeometry::from_window(&window).write(&settings);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user