Stop script-vars and close windows on eww kill
This commit is contained in:
parent
e427101c19
commit
3bd73b46f2
1 changed files with 2 additions and 0 deletions
|
@ -61,6 +61,8 @@ impl App {
|
|||
EwwCommand::ReloadCss(css) => self.load_css(&css),
|
||||
EwwCommand::KillServer => {
|
||||
log::info!("Received kill command, stopping server!");
|
||||
self.script_var_handler.stop();
|
||||
self.windows.values().for_each(|w| w.gtk_window.close());
|
||||
std::process::exit(0);
|
||||
}
|
||||
EwwCommand::OpenWindow { window_name, pos, size } => self.open_window(&window_name, pos, size),
|
||||
|
|
Loading…
Add table
Reference in a new issue