diff --git a/config/applications.json b/config/applications.json
index 970f3bad..a77c3d49 100644
--- a/config/applications.json
+++ b/config/applications.json
@@ -527,14 +527,6 @@
"link": "https://espanso.org/",
"winget": "Espanso.Espanso"
},
- "etcher": {
- "category": "Utilities",
- "choco": "etcher",
- "content": "Etcher USB Creator",
- "description": "Etcher is a powerful tool for creating bootable USB drives with ease.",
- "link": "https://www.balena.io/etcher/",
- "winget": "Balena.Etcher"
- },
"falkon": {
"category": "Browsers",
"choco": "falkon",
diff --git a/config/preset.json b/config/preset.json
index fb96dde5..8b8f90d5 100644
--- a/config/preset.json
+++ b/config/preset.json
@@ -2,6 +2,7 @@
"Standard": [
"WPFTweaksAH",
"WPFTweaksConsumerFeatures",
+ "WPFTweaksDisableExplorerAutoDiscovery",
"WPFTweaksDVR",
"WPFTweaksHiber",
"WPFTweaksHome",
@@ -18,6 +19,7 @@
],
"Minimal": [
"WPFTweaksConsumerFeatures",
+ "WPFTweaksDisableExplorerAutoDiscovery",
"WPFTweaksHome",
"WPFTweaksServices",
"WPFTweaksTele"
diff --git a/config/tweaks.json b/config/tweaks.json
index 27c7f3b5..02f10f65 100644
--- a/config/tweaks.json
+++ b/config/tweaks.json
@@ -3758,5 +3758,60 @@
"Type": "Button",
"ButtonWidth": "300",
"link": "https://christitustech.github.io/winutil/dev/tweaks/Performance-Plans/RemoveUltPerf"
- }
+ },
+ "WPFTweaksDisableExplorerAutoDiscovery": {
+ "Content": "Disable Explorer Automatic Folder Discovery",
+ "Description": "Windows Explorer automatically tries to guess the type of the folder based on its contents, slowing down the browsing experience.",
+ "category": "Essential Tweaks",
+ "panel": "1",
+ "Order": "a005_",
+ "InvokeScript": [
+ "
+ # Previously detected folders
+ $bags = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\Bags\"
+
+ # Folder types lookup table
+ $bagMRU = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\BagMRU\"
+
+ # Flush explorer view database
+ Remove-Item -Path $bags -Recurse -Force
+ Write-Host \"Removed $bags\"
+
+ Remove-Item -Path $bagMRU -Recurse -Force
+ Write-Host \"Removed $bagMRU\"
+
+ # Every folder
+ $allFolders = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\Bags\\AllFolders\\Shell\"
+
+ if (!(Test-Path $allFolders)) {
+ New-Item -Path $allFolders -Force
+ Write-Host \"Created $allFolders\"
+ }
+
+ # Generic view
+ New-ItemProperty -Path $allFolders -Name \"FolderType\" -Value \"NotSpecified\" -PropertyType String -Force
+ Write-Host \"Set FolderType to NotSpecified\"
+
+ Write-Host Please sign out and back in, or restart your computer to apply the changes!
+ "
+ ],
+ "UndoScript": [
+ "
+ # Previously detected folders
+ $bags = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\Bags\"
+
+ # Folder types lookup table
+ $bagMRU = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\BagMRU\"
+
+ # Flush explorer view database
+ Remove-Item -Path $bags -Recurse -Force
+ Write-Host \"Removed $bags\"
+
+ Remove-Item -Path $bagMRU -Recurse -Force
+ Write-Host \"Removed $bagMRU\"
+
+ Write-Host Please sign out and back in, or restart your computer to apply the changes!
+ "
+ ],
+ },
}
diff --git a/functions/private/Initalize-InstallAppEntry.ps1 b/functions/private/Initalize-InstallAppEntry.ps1
index 09aa732f..a81adf07 100644
--- a/functions/private/Initalize-InstallAppEntry.ps1
+++ b/functions/private/Initalize-InstallAppEntry.ps1
@@ -19,6 +19,9 @@ function Initialize-InstallAppEntry {
$border.Tag = $appKey
$border.ToolTip = $Apps.$appKey.description
$border.Add_MouseUp({
+ if ($_.ChangedButton -eq [System.Windows.Input.MouseButton]::Right) {
+ Invoke-WPFPresets -imported $true -checkboxfilterpattern "WPFInstall*";
+ }
$childCheckbox = ($this.Child.Children | Where-Object {$_.Template.TargetType -eq [System.Windows.Controls.Checkbox]})[0]
$childCheckBox.isChecked = -not $childCheckbox.IsChecked
})
diff --git a/scripts/main.ps1 b/scripts/main.ps1
index 830567db..ff0e8d7c 100644
--- a/scripts/main.ps1
+++ b/scripts/main.ps1
@@ -305,8 +305,8 @@ $sync["Form"].Add_MouseLeftButtonDown({
})
$sync["Form"].Add_MouseDoubleClick({
- if ($_.OriginalSource -is [System.Windows.Controls.Grid] -or
- $_.OriginalSource -is [System.Windows.Controls.StackPanel]) {
+ if ($_.OriginalSource.Name -eq "NavDockPanel" -or
+ $_.OriginalSource.Name -eq "GridBesideNavDockPanel") {
if ($sync["Form"].WindowState -eq [Windows.WindowState]::Normal) {
$sync["Form"].WindowState = [Windows.WindowState]::Maximized
}
diff --git a/xaml/inputXML.xaml b/xaml/inputXML.xaml
index 7f7ab8bb..3d525991 100644
--- a/xaml/inputXML.xaml
+++ b/xaml/inputXML.xaml
@@ -914,7 +914,7 @@
-
+
-
+