mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-30 00:20:55 +03:00
Revert "gtk: handle exit of service properly"
This reverts commit 1f4821a16d.
breaks ubuntu lts
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
mod imp;
|
||||
|
||||
use std::{io::Write, process};
|
||||
use std::io::Write;
|
||||
|
||||
use adw::prelude::*;
|
||||
use adw::subclass::prelude::*;
|
||||
@@ -218,16 +218,4 @@ impl Window {
|
||||
let toast_overlay = &self.imp().toast_overlay;
|
||||
toast_overlay.add_toast(toast);
|
||||
}
|
||||
|
||||
pub fn show_exit_dialog(&self, msg: &str) {
|
||||
let dialog = adw::MessageDialog::builder()
|
||||
.transient_for(self)
|
||||
// .heading(msg)
|
||||
.body(msg)
|
||||
.build();
|
||||
|
||||
dialog.add_response("close", "Close");
|
||||
dialog.connect_response(Some("close"), move |_, _| process::exit(1));
|
||||
dialog.show();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user