Skip to content

Commit 3fd8fa1

Browse files
Format installer (check CI)
1 parent aa10a0b commit 3fd8fa1

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

installer/main.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ def install():
4242
raise FileNotFoundError
4343
except FileNotFoundError:
4444
messagebox.CTkMessagebox(
45-
title="Error",
46-
message="Folder not found or not valid!",
47-
icon="cancel",
45+
title="Error",
46+
message="Folder not found or not valid!",
47+
icon="cancel",
4848
width=100,
4949
height=50
5050
)
@@ -75,9 +75,11 @@ def _install(path):
7575
config = configparser.ConfigParser()
7676
config.read_file(config_file)
7777
if "Logging.Console" in config:
78-
config["Logging.Console"]["Enabled"] = not bool(disable_logs_button.get())
78+
config["Logging.Console"]["Enabled"] = not bool(
79+
disable_logs_button.get())
7980
else:
80-
config["Logging.Console"] = {"Enabled": not bool(disable_logs_button.get())}
81+
config["Logging.Console"] = {
82+
"Enabled": not bool(disable_logs_button.get())}
8183
config.write(config_file)
8284
progress_bar.step()
8385

@@ -97,8 +99,10 @@ def launch():
9799
app.iconbitmap(default=resource_path("icon.ico"))
98100
app.resizable(False, False)
99101

100-
path_entry = customtkinter.CTkEntry(app, placeholder_text="Game path", width=228)
101-
browse_button = customtkinter.CTkButton(app, text="Browse", command=browse, width=1)
102+
path_entry = customtkinter.CTkEntry(
103+
app, placeholder_text="Game path", width=228)
104+
browse_button = customtkinter.CTkButton(
105+
app, text="Browse", command=browse, width=1)
102106
disable_logs_button = customtkinter.CTkCheckBox(app, text="Disable logs")
103107
disable_logs_button.select()
104108
install_button = customtkinter.CTkButton(app, text="Install", command=install)

0 commit comments

Comments
 (0)