From 634ef3266cd12953d3b045bc7fa92be94a1548ef Mon Sep 17 00:00:00 2001 From: Chris Titus Tech Date: Mon, 6 Oct 2025 09:51:48 -0500 Subject: [PATCH] add windows restore to config tab --- config/feature.json | 8 ++++++++ functions/public/Invoke-WPFButton.ps1 | 1 + functions/public/Invoke-WPFControlPanel.ps1 | 1 + 3 files changed, 10 insertions(+) diff --git a/config/feature.json b/config/feature.json index 549b5404..2f6449f1 100644 --- a/config/feature.json +++ b/config/feature.json @@ -290,6 +290,14 @@ "ButtonWidth": "300", "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/region" }, + "WPFPanelRestore": { + "Content": "Windows Restore", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/restore" + }, "WPFPanelSound": { "Content": "Sound Settings", "category": "Legacy Windows Panels", diff --git a/functions/public/Invoke-WPFButton.ps1 b/functions/public/Invoke-WPFButton.ps1 index 5d9110c7..8f8ace51 100644 --- a/functions/public/Invoke-WPFButton.ps1 +++ b/functions/public/Invoke-WPFButton.ps1 @@ -41,6 +41,7 @@ function Invoke-WPFButton { "WPFPanelPower" {Invoke-WPFControlPanel -Panel $button} "WPFPanelPrinter" {Invoke-WPFControlPanel -Panel $button} "WPFPanelRegion" {Invoke-WPFControlPanel -Panel $button} + "WPFPanelRestore" {Invoke-WPFControlPanel -Panel $button} "WPFPanelSound" {Invoke-WPFControlPanel -Panel $button} "WPFPanelSystem" {Invoke-WPFControlPanel -Panel $button} "WPFPanelTimedate" {Invoke-WPFControlPanel -Panel $button} diff --git a/functions/public/Invoke-WPFControlPanel.ps1 b/functions/public/Invoke-WPFControlPanel.ps1 index da2ab90e..c5ef0092 100644 --- a/functions/public/Invoke-WPFControlPanel.ps1 +++ b/functions/public/Invoke-WPFControlPanel.ps1 @@ -17,6 +17,7 @@ function Invoke-WPFControlPanel { "WPFPanelPower" {powercfg.cpl} "WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"} "WPFPanelRegion" {intl.cpl} + "WPFPanelRestore" {rstrui.exe} "WPFPanelSound" {mmsys.cpl} "WPFPanelSystem" {sysdm.cpl} "WPFPanelTimedate" {timedate.cpl}