🚧 Add Restart stub method
This commit is contained in:
parent
afee62bc3d
commit
6893bac687
1 changed files with 5 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ pub struct SessionService {
|
||||||
|
|
||||||
#[dbus_interface(name = "com.system76.CosmicSession")]
|
#[dbus_interface(name = "com.system76.CosmicSession")]
|
||||||
impl SessionService {
|
impl SessionService {
|
||||||
async fn exit(&mut self) {
|
fn exit(&mut self) {
|
||||||
match self.exit_tx.take() {
|
match self.exit_tx.take() {
|
||||||
Some(tx) => {
|
Some(tx) => {
|
||||||
tx.send(()).ok();
|
tx.send(()).ok();
|
||||||
|
|
@ -18,4 +18,8 @@ impl SessionService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn restart(&self) {
|
||||||
|
warn!("restarting session");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue