From d454db45796f56c03e773eb7a88a0a857dc8aafb Mon Sep 17 00:00:00 2001 From: Jakob Date: Thu, 9 Sep 2021 20:21:05 +0200 Subject: [PATCH] add ability to disable updater --- EnvyUpdate/MainWindow.xaml.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/EnvyUpdate/MainWindow.xaml.cs b/EnvyUpdate/MainWindow.xaml.cs index 1204619..c21d341 100644 --- a/EnvyUpdate/MainWindow.xaml.cs +++ b/EnvyUpdate/MainWindow.xaml.cs @@ -112,7 +112,9 @@ namespace EnvyUpdate private async void Load() { - await Util.DoUpdateAsync(); + //Check if updater disabled + if (!File.Exists(Path.Combine(GlobalVars.exepath, "disable_updater.envy"))) + await Util.DoUpdateAsync(); int psid = 0; int pfid = 0;