From 25bd77bb8b6220c645d2a38c5f085a592acf0be4 Mon Sep 17 00:00:00 2001
From: El Hadji Ndiaye <66810439+omar-njie@users.noreply.github.com>
Date: Mon, 19 Sep 2022 09:35:03 -0700
Subject: [PATCH] Added Twinkle Tray. (#157)
* added .idea to .gitignore
* added twinkle tray for winget
* added Twinkle Tray checkbox
* added code for if twinkle tray is checked
---
.gitignore | 1 +
MainWindow.xaml | 1 +
applications.json | 3 +++
winutil.ps1 | 6 +++++-
4 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 4b9986ff..6e5ed35b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@ winutil.exe.config
winutil.pdb
*.zip
package.psd1
+/.idea/
diff --git a/MainWindow.xaml b/MainWindow.xaml
index 8fb0c1eb..60c935e9 100644
--- a/MainWindow.xaml
+++ b/MainWindow.xaml
@@ -128,6 +128,7 @@
+
diff --git a/applications.json b/applications.json
index 02752368..90e81414 100644
--- a/applications.json
+++ b/applications.json
@@ -230,6 +230,9 @@
},
"Installzoom": {
"winget": "Zoom.Zoom"
+ },
+ "Installtwinkletray": {
+ "winget": "xanderfrangos.twinkletray"
}
}
}
diff --git a/winutil.ps1 b/winutil.ps1
index ea2eca39..41fed42a 100644
--- a/winutil.ps1
+++ b/winutil.ps1
@@ -417,7 +417,11 @@ $WPFinstall.Add_Click({
If ( $WPFInstallzoom.IsChecked -eq $true ) {
$wingetinstall.Add("Zoom.Zoom")
$WPFInstallzoom.IsChecked = $false
- }
+ }
+ If ( $WPFInstalltwinkletray.IsChecked -eq $true ) {
+ $wingetinstall.Add("xanderfrangos.twinkletray")
+ $WPFInstalltwinkletray.IsChecked = $false
+ }
# Check if winget is installed
Write-Host "Checking if Winget is Installed..."