mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
Removed quit and install bug
This commit is contained in:
parent
5752ad250c
commit
b14eabbdc9
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user