Skip to content

Commit a973ca0

Browse files
committed
Add explicit ISO guard to restore_console_font
Matches the existing guards in _set_font and save_console_font. Behaviour was already safe implicitly via _font_backup=None, but the explicit check makes intent obvious at the call site.
1 parent 4c0773c commit a973ca0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

archinstall/lib/translationhandler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ def save_console_font(self) -> None:
9797

9898
def restore_console_font(self) -> None:
9999
"""Restore console font (with unicode map) and console map from backup."""
100+
if not running_from_iso():
101+
return
102+
100103
if self._font_backup is None or not self._font_backup.exists():
101104
return
102105

0 commit comments

Comments
 (0)