2024-03-26 07:11:06 -07:00
|
|
|
using Avalonia.Controls;
|
|
|
|
using Avalonia.Interactivity;
|
|
|
|
|
|
|
|
namespace SourceGit.Views
|
|
|
|
{
|
2024-06-12 20:54:10 -07:00
|
|
|
public partial class SelfUpdate : ChromelessWindow
|
2024-03-26 07:11:06 -07:00
|
|
|
{
|
|
|
|
public SelfUpdate()
|
|
|
|
{
|
|
|
|
InitializeComponent();
|
|
|
|
}
|
|
|
|
|
2024-07-14 00:55:15 -07:00
|
|
|
private void CloseWindow(object _1, RoutedEventArgs _2)
|
2024-03-26 07:11:06 -07:00
|
|
|
{
|
|
|
|
Close();
|
|
|
|
}
|
|
|
|
|
2024-07-14 00:55:15 -07:00
|
|
|
private void GotoDownload(object _, RoutedEventArgs e)
|
2024-03-26 07:11:06 -07:00
|
|
|
{
|
|
|
|
Native.OS.OpenBrowser("https://github.com/sourcegit-scm/sourcegit/releases/latest");
|
|
|
|
e.Handled = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
private void IgnoreThisVersion(object sender, RoutedEventArgs e)
|
|
|
|
{
|
2024-07-14 00:55:15 -07:00
|
|
|
if (sender is Button { DataContext: Models.Version ver })
|
|
|
|
ViewModels.Preference.Instance.IgnoreUpdateTag = ver.TagName;
|
|
|
|
|
2024-03-26 07:11:06 -07:00
|
|
|
Close();
|
|
|
|
e.Handled = true;
|
|
|
|
}
|
|
|
|
}
|
2024-03-31 01:54:29 -07:00
|
|
|
}
|