Skip to content

Commit e947cbf

Browse files
committed
Fetch locales
1 parent 95ef505 commit e947cbf

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Initialize/xaml.ps1

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,18 @@ try {
149149
$h.AutomaticDecompression = [System.Net.DecompressionMethods] 'GZip,Deflate'
150150
$c = [System.Net.Http.HttpClient]::new($h)
151151

152-
$appsUrl = "https://raw.githubusercontent.com/emadadeldev/ittea/refs/heads/update/static/Database/Applications.json"
153-
$tweaksUrl = "https://raw.githubusercontent.com/emadadeldev/ittea/refs/heads/update/static/Database/Tweaks.json"
154-
$localsUrl = "https://raw.githubusercontent.com/emadadeldev/ittea/refs/heads/update/static/Database/locales.json"
152+
$appsUrl = "https://raw.githubusercontent.com/emadadeldev/ittea/refs/heads/main/static/Database/Applications.json"
153+
$tweaksUrl = "https://raw.githubusercontent.com/emadadeldev/ittea/refs/heads/main/static/Database/Tweaks.json"
154+
$localsUrl = "https://raw.githubusercontent.com/emadadeldev/ittea/refs/heads/main/static/Database/locales.json"
155155

156156
while ($true) {
157157
try {
158158
$aTask, $tTask, $lTask = $c.GetStringAsync($appsUrl), $c.GetStringAsync($tweaksUrl), $c.GetStringAsync($localsUrl)
159159
[Threading.Tasks.Task]::WaitAll($aTask, $tTask, $lTask)
160160

161+
# $splash.FindName("status").Text = "Getting Apps"
162+
# [System.Windows.Threading.Dispatcher]::CurrentDispatcher.Invoke([Action]{}, [System.Windows.Threading.DispatcherPriority]::Render)
163+
161164
$appsData = $aTask.Result | ConvertFrom-Json
162165
$tweaksData = $tTask.Result | ConvertFrom-Json
163166
$localsUrl = $lTask.Result | ConvertFrom-Json
@@ -181,8 +184,6 @@ try {
181184
#===========================================================================
182185
#endregion Fetch Data
183186
#===========================================================================
184-
185-
186187
#===========================================================================
187188
#region Set Language based on culture
188189
#===========================================================================

0 commit comments

Comments
 (0)