nikagl / hisense

8 stars 3 forks source link

Fix: launchapp not iterating through all apps in app_list #2

Closed simbelcode closed 4 weeks ago

simbelcode commented 4 weeks ago

This pull request addresses an issue where, if an app name other than the first one in the app_list was provided, the message Failed to find app in app list. would appear.

The bug was caused by a misplaced break statement that was outside the loop, preventing the function from iterating through the entire list. I have moved the break inside the loop where app_name is compared to the names in the list, allowing the function to properly check all apps in the list.

nikagl commented 4 weeks ago

Thanks @simbelcode 👍