blob: 6a14657a9adb5136e592efd7943effeec64f9647 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// this really should be a patch file but ended up being easier like this
using System;
using System.Threading;
using System.Threading.Tasks;
using Avalonia.Controls;
using NetSparkleUpdater.Enums;
using OpenUtau.App.ViewModels;
using OpenUtau.Core.Util;
using Serilog;
namespace OpenUtau.App.Views {
public partial class UpdaterDialog : Window {
public readonly UpdaterViewModel ViewModel;
public UpdaterDialog() {
InitializeComponent();
DataContext = ViewModel = new UpdaterViewModel();
}
void OnClosing(object sender, WindowClosingEventArgs e) {
ViewModel.OnClosing();
}
public static void CheckForUpdate(Action<Window> showDialog, Action closeApplication, TaskScheduler scheduler) {
// No-op.
}
}
}
|