mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-24 05:35:00 +00:00
code_style: remove all IDE warnings
This commit is contained in:
parent
9ac550242e
commit
a807aa9e12
94 changed files with 785 additions and 807 deletions
|
@ -2,7 +2,6 @@ using Avalonia;
|
|||
using Avalonia.Controls;
|
||||
using Avalonia.Controls.Shapes;
|
||||
using Avalonia.Interactivity;
|
||||
using Avalonia.Media;
|
||||
|
||||
namespace SourceGit.Views
|
||||
{
|
||||
|
@ -51,20 +50,16 @@ namespace SourceGit.Views
|
|||
|
||||
private void StartAnim()
|
||||
{
|
||||
icon.Content = new Path()
|
||||
{
|
||||
Data = this.FindResource("Icons.Waiting") as StreamGeometry,
|
||||
Classes = { "waiting" },
|
||||
};
|
||||
progressBar.IsIndeterminate = true;
|
||||
Icon.Content = new Path() { Classes = { "waiting" } };
|
||||
ProgressBar.IsIndeterminate = true;
|
||||
}
|
||||
|
||||
private void StopAnim()
|
||||
{
|
||||
if (icon.Content is Path path)
|
||||
if (Icon.Content is Path path)
|
||||
path.Classes.Clear();
|
||||
icon.Content = null;
|
||||
progressBar.IsIndeterminate = false;
|
||||
Icon.Content = null;
|
||||
ProgressBar.IsIndeterminate = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue