From 3351c086746ababf5b8e6cdba156b8309d4dcfaa Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 12 Apr 2019 10:56:05 -0500 Subject: [PATCH] #17: Prompt for UI upgrade before dependency installation --- src/App.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App.js b/src/App.js index e1227ff..bf36b0f 100644 --- a/src/App.js +++ b/src/App.js @@ -576,9 +576,6 @@ class App extends IPCContainer { const noConsoleSupported = this.state.LocationsLookup[selectedVersion] && this.state.LocationsLookup[selectedVersion].no_console_supported; - const showDependencies = missingDependencies && - !this.state.DownloadActive; - const showConfig = !missingDependencies && this.state.ConfigStorageType && allowConfig; @@ -586,10 +583,13 @@ class App extends IPCContainer { const showUpgrade = this.state.UpgradeAvailable && !this.state.DisplayError && !showConfig && - !missingDependencies && !this.state.DownloadActive && !this.state.UpgradeDismissed; + const showDependencies = !showUpgrade && + missingDependencies && + !this.state.DownloadActive; + let errorDisplay = null; if (this.state.DisplayError) { errorDisplay = (