Skip to content

Commit 5df3552

Browse files
committed
Loading spinner instead of progress bar
1 parent 3487eb7 commit 5df3552

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
66
<!-- IF BUILD FAILS DUE TO MISSING Microsoft.Management.Deployment NAMESPACE,
77
TOGGLE THE LAST NUMBER OF THE LINE BELOW 1 UNIT UP OR DOWN, AND REBUILD-->
8-
<WindowsSdkPackageVersion>10.0.26100.56</WindowsSdkPackageVersion>
8+
<WindowsSdkPackageVersion>10.0.26100.57</WindowsSdkPackageVersion>
99

1010
<SdkVersion>8.0.407</SdkVersion>
1111
<Authors>Martí Climent and the contributors</Authors>

src/UniGetUI/App.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ private void InitializeMainWindow()
260260
{
261261
appWindow.Closing += MainWindow.HandleClosingEvent;
262262
}
263+
264+
MainWindow.DoEntryTextAnimationAsync();
263265
}
264266

265267
/// <summary>
@@ -300,8 +302,6 @@ private async Task LoadComponentsAsync()
300302
// Create MainWindow
301303
InitializeMainWindow();
302304

303-
_ = MainWindow.DoEntryTextAnimationAsync();
304-
305305
IEnumerable<Task> iniTasks =
306306
[
307307
Task.Run(PEInterface.LoadManagers), // Takes most of the time

src/UniGetUI/MainWindow.xaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,15 +180,16 @@
180180
</StackPanel>
181181
</Border>
182182
</StackPanel>
183-
<ProgressBar
183+
<ProgressRing
184184
Name="LoadingIndicator"
185185
Grid.Row="1"
186186
Grid.Column="1"
187-
Margin="0,0,5,0"
187+
Margin="0,0,0,-48"
188188
VerticalAlignment="Bottom"
189+
HorizontalAlignment="Center"
189190
Foreground="#08a9c3"
190191
IsIndeterminate="True"
191-
Visibility="Collapsed" />
192+
Visibility="Visible" />
192193
</Grid>
193194
</Frame>
194195

src/UniGetUI/MainWindow.xaml.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -715,12 +715,10 @@ await DialogHelper.ShowMissingDependency(dependency.Name, dependency.InstallFile
715715
}
716716
}
717717

718-
public async Task DoEntryTextAnimationAsync()
718+
public void DoEntryTextAnimationAsync()
719719
{
720720
InAnimation_Border.Start();
721721
InAnimation_Text.Start();
722-
await Task.Delay(700);
723-
LoadingIndicator.Visibility = Visibility.Visible;
724722
}
725723

726724
private async Task SaveGeometry(bool Force = false)

0 commit comments

Comments
 (0)