Removed quit and install bug

This commit is contained in:
Gregory Schier 2016-11-22 12:00:04 -08:00
parent 5752ad250c
commit b14eabbdc9
2 changed files with 2 additions and 16 deletions

View File

@ -43,7 +43,6 @@ const localStorage = new LocalStorage(localStoragePath);
let mainWindow = null;
let hasPromptedForUpdates = false;
let installUpdateBeforeQuiting = false;
// Enable this for CSS grid layout :)
app.commandLine.appendSwitch('enable-experimental-web-platform-features');
@ -74,7 +73,6 @@ autoUpdater.on('update-available', () => {
autoUpdater.on('update-downloaded', (e, releaseNotes, releaseName, releaseDate, updateUrl) => {
console.log(`-- Update Downloaded ${releaseName} --`);
installUpdateBeforeQuiting = true;
showUpdateNotification();
});
@ -224,17 +222,6 @@ app.on('window-all-closed', () => {
}
});
// Intercept normal quit events because we might need to install updates
app.on('will-quit', e => {
if (installUpdateBeforeQuiting) {
// Unset this so we don't infinite loop
installUpdateBeforeQuiting = false;
e.preventDefault();
autoUpdater.quitAndInstall();
}
});
// Mac-only, when the user clicks the doc icon
app.on('activate', (e, hasVisibleWindows) => {
// Create a new window when clicking the doc icon if there isn't one open

View File

@ -99,10 +99,9 @@ class RequestPane extends Component {
<TabList>
<Tab>
<button>
{getContentTypeName(getContentTypeFromHeaders(request.headers))}
{getContentTypeName(request.body.mimeType)}
</button>
<ContentTypeDropdown
updateRequestMimeType={updateRequestMimeType}/>
<ContentTypeDropdown updateRequestMimeType={updateRequestMimeType}/>
</Tab>
<Tab>
<button>