Browse Source

Disable "update is ready to install" dialog in debug builds

Equbuxu 4 years ago
parent
commit
4ff7e1ff7e
1 changed files with 7 additions and 0 deletions
  1. 7 0
      PixiEditor/Views/MainWindow.xaml.cs

+ 7 - 0
PixiEditor/Views/MainWindow.xaml.cs

@@ -70,6 +70,13 @@ namespace PixiEditor
 
         private void MainWindow_Initialized(object sender, EventArgs e)
         {
+#if RELEASE
+            CheckForDownloadedUpdates();
+#endif
+        }
+
+        private void CheckForDownloadedUpdates()
+        {
             string dir = AppDomain.CurrentDomain.BaseDirectory;
             UpdateDownloader.CreateTempDirectory();
             bool updateZipExists = Directory.GetFiles(UpdateDownloader.DownloadLocation, "update-*.zip").Length > 0;