mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Use boolean values for app launch
This commit is contained in:
@@ -33,14 +33,8 @@ impl<'a, R: ReadWrite> ProcessControlClient<'a, R> {
|
|||||||
.into(),
|
.into(),
|
||||||
);
|
);
|
||||||
let mut options = Dictionary::new();
|
let mut options = Dictionary::new();
|
||||||
options.insert(
|
options.insert("StartSuspendedKey".into(), start_suspended.into());
|
||||||
"StartSuspendedKey".into(),
|
options.insert("KillExisting".into(), kill_existing.into());
|
||||||
if start_suspended { 0_u64 } else { 1 }.into(),
|
|
||||||
);
|
|
||||||
options.insert(
|
|
||||||
"KillExisting".into(),
|
|
||||||
if kill_existing { 0_u64 } else { 1 }.into(),
|
|
||||||
);
|
|
||||||
|
|
||||||
let env_vars = match env_vars {
|
let env_vars = match env_vars {
|
||||||
Some(e) => e,
|
Some(e) => e,
|
||||||
|
|||||||
@@ -38,6 +38,10 @@ impl<R: ReadWrite> RemoteServerClient<R> {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn into_inner(self) -> R {
|
||||||
|
self.idevice
|
||||||
|
}
|
||||||
|
|
||||||
pub fn root_channel(&mut self) -> Channel<R> {
|
pub fn root_channel(&mut self) -> Channel<R> {
|
||||||
Channel {
|
Channel {
|
||||||
client: self,
|
client: self,
|
||||||
|
|||||||
Reference in New Issue
Block a user