format
parent
18cc1d27c5
commit
ea5525c7d1
|
|
@ -21,7 +21,7 @@ dbus_class!("net.ddns.chiocciolo.waydrop.term", class Term (tx: Sender<RpcComman
|
||||||
fn toggle(&this) -> bool{
|
fn toggle(&this) -> bool{
|
||||||
this.tx.send(RpcCommand::Toggle).is_ok()
|
this.tx.send(RpcCommand::Toggle).is_ok()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn run_shell(&this, cwd: String, shell: Vec<String>) -> bool {
|
fn run_shell(&this, cwd: String, shell: Vec<String>) -> bool {
|
||||||
let cwd = if cwd != "" {Some(cwd)} else {None };
|
let cwd = if cwd != "" {Some(cwd)} else {None };
|
||||||
this.tx.send(RpcCommand::RunShell{cwd, shell}).is_ok()
|
this.tx.send(RpcCommand::RunShell{cwd, shell}).is_ok()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue