Skip to content

Commit

Permalink
(bug) some tools were crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
fluentmoheshwar committed Jun 16, 2024
1 parent f3e23b8 commit ced5228
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,22 +149,22 @@ def restart():

@eel.expose
def repairSystemFiles():
os.system("sfc /scannow")
os.system("sudo sfc /scannow")


@eel.expose
def repairWindowsComponents():
os.system("dism /online /cleanup-image /restorehealth")
os.system("sudo dism /online /cleanup-image /restorehealth")


@eel.expose
def wsreset():
os.system("start wsreset.exe")
os.system("sudo wsreset.exe")


@eel.expose
def restartWinNat():
os.system("net stop winnat && net start winnat")
os.system("sudo net stop winnat && sudo net start winnat")


eel.start("index.html")

0 comments on commit ced5228

Please sign in to comment.