optimize<AutoFetch>: reduce CPU usage

This commit is contained in:
leo 2024-02-19 17:40:36 +08:00
parent 0d6fd1ccfa
commit d895beb3f4
2 changed files with 3 additions and 1 deletions

View file

@ -81,6 +81,8 @@ namespace SourceGit.Commands {
job.Cmd.Exec();
job.NextRunTimepoint = DateTime.Now.AddSeconds(_fetchInterval);
}
Thread.Sleep(2000);
}
});
}

View file

@ -205,7 +205,7 @@ namespace SourceGit.Views {
public partial class Histories : UserControl {
public Histories() {
InitializeComponent();
InitializeComponent();
}
protected override void OnUnloaded(RoutedEventArgs e) {