Skip to content

Commit

Permalink
fix apps sometimes delete themselves (#1794)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypp committed Jul 3, 2024
1 parent 6e10e6c commit a8b9751
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,6 @@ BOOLEAN _app_isappexists (
switch (ptr_app->type)
{
case DATA_APP_REGULAR:
case DATA_APP_SERVICE:
{
if (ptr_app->real_path && !_r_fs_exists (ptr_app->real_path->buffer))
return FALSE;
Expand All @@ -1420,6 +1419,7 @@ BOOLEAN _app_isappexists (

case DATA_APP_DEVICE:
case DATA_APP_NETWORK:
case DATA_APP_SERVICE:
case DATA_APP_UWP:
case DATA_APP_PICO:
{
Expand Down Expand Up @@ -1463,15 +1463,9 @@ BOOLEAN _app_isappused (
_In_ PITEM_APP ptr_app
)
{
if (ptr_app->is_undeletable)
return TRUE;

if (ptr_app->is_enabled || ptr_app->is_silent)
return TRUE;

if (!_app_isappexists (ptr_app))
return FALSE;

if (_app_isapphaverule (ptr_app->app_hash, TRUE))
return TRUE;

Expand Down

0 comments on commit a8b9751

Please sign in to comment.