Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/onelauncher/config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def convert_to_toml(
tables.append((key, table))
elif (
isinstance(val, list)
and len(val)
and val
and all(isinstance(item, dict) for item in val)
):
table_array = tomlkit.aot()
Expand Down Expand Up @@ -165,7 +165,7 @@ def _tables_to_array_of_tables(
array_of_tables: list[dict[str, Any]] = []
final_dict: dict[str, Any] = {}
for table_name, table in unstructured_tables.items():
# Handle normal key-value pares
# Handle normal key-value pairs
if not isinstance(table, dict):
final_dict[table_name] = table
continue
Expand Down
2 changes: 1 addition & 1 deletion src/onelauncher/game_account_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ def get_config_version() -> Version:
@override
@staticmethod
def get_config_file_description() -> str:
return f"A game accounts config file for {__title__}"
return f"A game accounts config file for {__title__}"
2 changes: 1 addition & 1 deletion src/onelauncher/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ async def run(self) -> None:
self.show()
self.nursery.start_soon(self.InitialSetup)
self.nursery.start_soon(check_for_update)
# Will be canceled when the winddow is closed
# Will be canceled when the window is closed
self.nursery.start_soon(trio.sleep_forever)

def resetFocus(self) -> None:
Expand Down
2 changes: 1 addition & 1 deletion src/onelauncher/settings_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ async def run(self) -> None:
self.nursery.start_soon(self.indicate_unavailable_client_types)
self.nursery.start_soon(self.setup_newsfeed_option)
self.nursery.start_soon(self.setup_game_settings_dir_option)
# Will be canceled when the winddow is closed
# Will be canceled when the window is closed
self.nursery.start_soon(trio.sleep_forever)

def cleanup(self) -> None:
Expand Down
2 changes: 1 addition & 1 deletion src/onelauncher/setup_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ async def run(self) -> None:

self.nursery.start_soon(self.initialize_games_selection_page)

# Will be canceled when the winddow is closed
# Will be canceled when the window is closed
self.nursery.start_soon(trio.sleep_forever)

def cleanup(self) -> None:
Expand Down
2 changes: 1 addition & 1 deletion src/onelauncher/start_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ async def update_game_user_preferences(
unedited_config = deepcopy(config)

# Set screen mode to `FullScreenWindowed` on macOS on first game launch.
# The default `Fullscreen` mode bloacks the macOS prompt for allowing required game
# The default `Fullscreen` mode blocks the macOS prompt for allowing required game
# permissions. It also causes issues with some Macintosh monitors and laptop screens,
# especially when using multiple monitors.
if sys.platform == "darwin" and game_config.last_played is None:
Expand Down
2 changes: 1 addition & 1 deletion src/onelauncher/ui/install_game_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async def run(self) -> None:
self.finished.connect(self.cleanup)

self.nursery.start_soon(self.keep_progress_bar_updated)
# Will be canceled when the winddow is closed.
# Will be canceled when the window is closed.
self.nursery.start_soon(trio.sleep_forever)

def cleanup(self) -> None:
Expand Down
2 changes: 1 addition & 1 deletion src/onelauncher/ui/patch_game_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async def run(self) -> None:
self.open()
async with trio.open_nursery() as self.nursery:
self.nursery.start_soon(self.keep_progress_bar_updated)
# Will be canceled when the winddow is closed.
# Will be canceled when the window is closed.
self.nursery.start_soon(trio.sleep_forever)

def cleanup(self) -> None:
Expand Down
2 changes: 1 addition & 1 deletion src/onelauncher/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def get_current_progress(self) -> CurrentProgress:

return CurrentProgress(
# Using 0 to 10,000 instead of 0 to `current_progress.total` to prevent
# overfloq errors.
# overflow errors.
completed=round(sum_completed / sum_total * 10000),
total=10000,
progress_text=progress_text,
Expand Down