mirror of
https://github.com/tw93/Mole.git
synced 2026-02-15 15:45:06 +00:00
fix(windows): address code review issues
- Fix openInExplorer to actually execute explorer.exe (was a no-op) - Load System.Windows.Forms assembly before using Clipboard - Use Remove-SafeItem in purge for consistent safety checks - Fix Dropbox typo (was DroplboxCache)
This commit is contained in:
@@ -207,7 +207,7 @@ function Clear-OneDriveCache {
|
||||
}
|
||||
}
|
||||
|
||||
function Clear-DroplboxCache {
|
||||
function Clear-DropboxCache {
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Clean Dropbox cache
|
||||
@@ -405,7 +405,7 @@ function Invoke-AppCleanup {
|
||||
# Productivity apps
|
||||
Clear-OfficeCache
|
||||
Clear-OneDriveCache
|
||||
Clear-DroplboxCache
|
||||
Clear-DropboxCache
|
||||
Clear-GoogleDriveCache
|
||||
|
||||
# Creative apps
|
||||
|
||||
@@ -289,6 +289,9 @@ function Clear-ClipboardHistory {
|
||||
}
|
||||
|
||||
try {
|
||||
# Load Windows Forms assembly for clipboard access
|
||||
Add-Type -AssemblyName System.Windows.Forms -ErrorAction SilentlyContinue
|
||||
|
||||
# Clear current clipboard
|
||||
[System.Windows.Forms.Clipboard]::Clear()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user