Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Anequit committed Jun 6, 2022
1 parent 89e5f33 commit f8bf69b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/options.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import keys
import os
import shutil
from utils.powershell import Powershell
from utils.registry import Registry
from keys import Keys


class Options:
Expand Down Expand Up @@ -35,7 +35,7 @@ def optimize_network() -> None:
def optimize_windows() -> None:
print(" - Optimizing Windows...")

Registry.write_keys(keys.optimization_keys)
Registry.write_keys(Keys.optimization_keys)

Powershell.execute_commands("powercfg /s 381b4222-f694-41f0-9685-ff5bb260df2e",
"powercfg /d 010fd358-aaf5-4687-a504-26218b58eab8",
Expand Down Expand Up @@ -69,23 +69,23 @@ def activate_win_pro() -> None:
def disable_telemetry() -> None:
print(" - Disabling telemetry...")

Registry.write_keys(keys.telemetry_keys)
Registry.write_keys(Keys.telemetry_keys)

print(" - All telemetry disabled.")

@staticmethod
def disable_autoupdates() -> None:
print(" - Disabling auto updates...")

Registry.write_keys(keys.autoupdate_keys)
Registry.write_keys(Keys.autoupdate_keys)

print(" - Auto updates disabled.")

@staticmethod
def clean_system_junk() -> None:
print(" - Running Disk Cleanup...")

Registry.write_keys(keys.cleanup_keys)
Registry.write_keys(Keys.cleanup_keys)

Powershell.execute_command(r"cleanmgr.exe /sagerun:0")

Expand Down

0 comments on commit f8bf69b

Please sign in to comment.