UI: close sing-box on close request
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
parent
15f20077b1
commit
657ddc0e68
1 changed files with 4 additions and 0 deletions
|
@ -38,5 +38,9 @@ public class Singularity.Window : Adw.ApplicationWindow {
|
|||
});
|
||||
outbounds.set_model (SingBox.instance.outbound_selection);
|
||||
outbounds.set_factory (factory);
|
||||
close_request.connect (() => {
|
||||
SingBox.instance.singbox.force_exit ();
|
||||
return false;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue