Skip to content

Commit

Permalink
clean history when restart
Browse files Browse the repository at this point in the history
  • Loading branch information
rexdf committed Dec 31, 2017
1 parent ffd5cdd commit c95ede2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CommandTrayHost/CommandTrayHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,10 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
}
cachefile_invalid = true; // after first load, every time config is reload, cache must need to be write
check_admin(is_runas_admin);
if (is_from_self_restart && !keep_update_history)
{
_wsystem(L"rd /s /q " UPDATE_TEMP_DIR);
}
//initialize_local();
//
start_all(ghJob);
Expand Down

0 comments on commit c95ede2

Please sign in to comment.