Skip to content

Commit 7e6cc90

Browse files
committed
fix: disable-apps incorrect --name condition
Signed-off-by: addrian-77 <lunguadrian30@gmail.com>
1 parent 34f767f commit 7e6cc90

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

tockloader-lib/src/command_impl/probers/disable_app.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,8 @@ impl CommandDisableApp for ProbeRSConnection {
9999
let mut app: &AppData;
100100
match app_name {
101101
Some(app_name) => {
102-
app = match installed_apps.iter().find(|iter| iter.name == app_name && iter.enabled == false) {
103-
Some(app) => {
104-
log::info!("found app");
105-
app
106-
},
102+
app = match installed_apps.iter().find(|iter| iter.name == app_name && iter.enabled == true) {
103+
Some(app) => app,
107104
None => break,
108105
}
109106
}

0 commit comments

Comments
 (0)