Skip to content

Commit

Permalink
fix fullscreen behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
grahampugh committed Mar 1, 2023
1 parent d1ef98e commit 21577f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ No date

- `--os` can now be used along with `--fetch-full-installer`.
- Remove audible sound when 1 hour timeout is reached.
- Add `--quiet` option to prevent large output from mist. Note that with this mode enabled, there is no download progress bar, since the output is required to read the download progress.
- Log output from `mist` is now somewhat reduced due to the use of the `no-ansi` mode.
- Add `--quiet` option to prevent output from mist during download. Note that with this mode enabled, there is no download progress bar, since the output is required to read the download progress.
- Log files are now rotated up to 9 times (#369, thanks to @aschwanb).

### Bugfixes
Expand Down
6 changes: 5 additions & 1 deletion erase-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,7 @@ dialog_progress() {
writelog "Sending to dialog: progresstext: Preparing downloaded macOS installer"
/bin/echo "progress: complete" >> "$dialog_log"
fi

elif [[ "$1" == "fetch-full-installer" ]]; then
writelog "Sending to dialog: progresstext: Searching for a valid macOS installer..."
/bin/echo "progresstext: Searching for a valid macOS installer..." >> "$dialog_log"
Expand Down Expand Up @@ -1689,6 +1690,9 @@ run_mist() {
mist_args+=("$installer_directory")
fi

# run in no-ansi mode which is less pretty but better for our logs
mist_args+=("--no-ansi")

# reduce output if --quiet mode
if [[ "$quiet" == "yes" ]]; then
mist_args+=("--quiet")
Expand Down Expand Up @@ -3031,7 +3035,7 @@ else
fi

# window type for erase and reinstall dialogs
if [[ $fs == "yes" ]]; then
if [[ $fs == "yes" || ($erase == "yes" && $no_fs != "yes") || ($reinstall == "yes" && $no_fs != "yes" && $rebootdelay -lt 10) ]]; then
window_type="fullscreen"
iconsize=200
else
Expand Down

0 comments on commit 21577f5

Please sign in to comment.