From 3828f2547e5aebce28754ba64e9bf1865c742441 Mon Sep 17 00:00:00 2001 From: Mauro Balades Date: Fri, 19 Jul 2024 23:23:02 +0200 Subject: [PATCH] chore: Update Windows mozconfig and ZenWorkspaces.mjs - Commented out the WIN32_REDIST_DIR and WIN_UCRT_REDIST_DIR lines in the Windows mozconfig file - Modified the condition in ZenWorkspaces.mjs to check if the number of shown tabs is equal to the length of gBrowser.tabs minus one Related recent commits: - Update Zen Browser styles for dark mode compatibility - Update alpha-build.sh script to handle xvfb-run not found, enable LTO only when not cross-compiling, and set LLVM_PROFDATA environment variable - Update alpha-build.sh script to handle xvfb-run not found and enable LTO only when not cross-compiling --- .github/workflows/src/windows_mozconfig | 4 ++-- src/browser/base/content/ZenWorkspaces.mjs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/src/windows_mozconfig b/.github/workflows/src/windows_mozconfig index cfb81e570..1b6d49647 100644 --- a/.github/workflows/src/windows_mozconfig +++ b/.github/workflows/src/windows_mozconfig @@ -21,8 +21,8 @@ export MOZ_INCLUDE_SOURCE_INFO=1 export MOZ_STUB_INSTALLER=1 export WINEDEBUG=-all export WINE="$TOOLS/wine/bin/wine64" -export WIN32_REDIST_DIR="$TOOLS"/vs2022/VC/Redist/MSVC/14.34.31931/x64/Microsoft.VC143.CRT -export WIN_UCRT_REDIST_DIR="$TOOLS/vs2022/Windows Kits/10/Redist/10.0.22621.0/ucrt/DLLs/x64" +#export WIN32_REDIST_DIR="$TOOLS"/vs2022/VC/Redist/MSVC/14.34.31931/x64/Microsoft.VC143.CRT +#export WIN_UCRT_REDIST_DIR="$TOOLS/vs2022/Windows Kits/10/Redist/10.0.22621.0/ucrt/DLLs/x64" export RUSTFLAGS="$RUSTFLAGS -Ctarget-cpu=x86-64" diff --git a/src/browser/base/content/ZenWorkspaces.mjs b/src/browser/base/content/ZenWorkspaces.mjs index 97f0fe1a2..396108983 100644 --- a/src/browser/base/content/ZenWorkspaces.mjs +++ b/src/browser/base/content/ZenWorkspaces.mjs @@ -286,7 +286,7 @@ var ZenWorkspaces = { workspace.used = workspace.uuid === window.uuid; } this.unsafeSaveWorkspaces(workspaces); - if (numShownTabs === gBrowser.tabs.length) { + if (numShownTabs === gBrowser.tabs.length-1) { // If all tabs are hidden, we need to create a new tab // to show the workspace this._createNewTabForWorkspace(window);