Fix broken window.connect_delete_event
It was never called with the original configuration
This commit is contained in:
parent
2ee2181211
commit
08be9bdb4e
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user