Skip to content

Commit 9443bfb

Browse files
authored
Update WindowsUpdatePauser.cpp
# πŸ“ Changelog β€” Windows Update Pauser > **v1.4.0 β†’ v1.4.1** --- ## βœ… New Features - **Added restart requirement** after pausing or resuming updates. The app now clearly indicates: `⚠️ Restart required to apply pause` / `⚠️ Restart required to resume updates`. - Introduced a **dedicated restart button** (`πŸ”„ Restart Now`) that performs an **immediate system reboot** with proper privileges. - Implemented **accurate OS version detection**: - `IsWindows10Only()` - `IsWindows11()` Enables future OS-specific configuration logic. --- ## πŸ”’ Enhanced Security & Update Blocking - Expanded list of **disabled Windows services** via registry: - `WaaSMedicSvc` (fully disabled with `Start = 4` and zeroed `FailureActions`) - `uhssvc` (Windows 10 only) - Additional services (`wuauserv`, `DoSvc`, `UsoSvc`) are prepared but commented out for safety. - Added **extra group policies** under `HKLM\SOFTWARE\Policies`: - `AllowAutoWindowsUpdateDownloadOverMeteredNetwork = 0` β€” blocks updates on metered connections. - `NoAutoRebootWithLoggedOnUsers = 1` β€” prevents automatic reboots when users are logged in. - `AllowMUUpdateService = 0` β€” disables Microsoft Update. - `PreventDeviceMetadataFromNetwork = 1` β€” blocks device metadata downloads. - On resume, **original `FailureActions` are restored** for `WaaSMedicSvc` to ensure service stability. --- ## πŸ–₯️ UI & UX Improvements - **Window is now more compact**: - Old: `455 Γ— 245` β†’ New: `445 Γ— 210` - All UI elements slightly reduced for better visual balance. - **Improved button press animation**: Replaced downward shift with a **98% scale-down effect** ("press-in" feel). - Added a **subtle vertical gradient background** for depth and modern aesthetics. - Shadows and corner radii now **scale with DPI**, ensuring crisp visuals on high-resolution displays. --- ## πŸ“ High-DPI (Per-Monitor V2) Support - Introduced global `g_app.dpiScale` for consistent scaling. - Uses `AdjustWindowRectExForDpi()` to **accurately compute window size** including non-client area (borders, title bar). - Removed legacy `ApplyDpiTransform()` β€” scaling is now handled at layout level, not render transform. - Window is **automatically centered on the active monitor** with correct DPI scaling. --- ## πŸ›  Other Improvements - **Single-instance logic**: Improved detection of existing window via `EnumWindows` for greater reliability. - **Status panel behavior**: - In "Restart required" mode, **hover no longer changes the message** (previously showed GitHub link). - GitHub link is only shown when **no restart is pending**. - Codebase is now **more modular and maintainable**, with dedicated functions for OS version, DPI, and color logic. --- > πŸ’‘ **Note**: These changes make the application **more reliable**, **clearer about system requirements**, and **visually polished**, especially on high-DPI and Windows 11 systems.
1 parent 2975904 commit 9443bfb

File tree

1 file changed

+660
-308
lines changed

1 file changed

+660
-308
lines changed

0 commit comments

Comments
Β (0)