Explorar el Código

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

Equbuxu hace 4 años
padre
commit
4ff7e1ff7e
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  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)
         private void MainWindow_Initialized(object sender, EventArgs e)
         {
         {
+#if RELEASE
+            CheckForDownloadedUpdates();
+#endif
+        }
+
+        private void CheckForDownloadedUpdates()
+        {
             string dir = AppDomain.CurrentDomain.BaseDirectory;
             string dir = AppDomain.CurrentDomain.BaseDirectory;
             UpdateDownloader.CreateTempDirectory();
             UpdateDownloader.CreateTempDirectory();
             bool updateZipExists = Directory.GetFiles(UpdateDownloader.DownloadLocation, "update-*.zip").Length > 0;
             bool updateZipExists = Directory.GetFiles(UpdateDownloader.DownloadLocation, "update-*.zip").Length > 0;