Skip to content

Squirrel it away - #2319

Merged
shiftkey merged 12 commits into
masterfrom
squirrel-it-away
Jul 26, 2017
Merged

shiftkey merged 12 commits into
masterfrom
squirrel-it-away

Conversation

@joshaber

@joshaber joshaber commented Jul 24, 2017 •

Copy link
Copy Markdown
Contributor

Fixes #2312

We were enforcing single instance even when we got a Squirrel event, which meant the updated instance would be quit before it had time to do anything.

Incidentally, this also caused a bug @niik had seen where the app would be focused after an update was downloaded.

@hubot
hubot deployed to beta July 24, 2017 20:55 Active
@joshaber joshaber added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jul 25, 2017
const parsedURL = URL.parse(url, true)
const hostname = parsedURL.hostname
const unknown: IUnknownAction = { name: 'unknown' }
const unknown: IUnknownAction = { name: 'unknown', url }

This comment was marked as spam.

@joshaber

Copy link
Copy Markdown
Contributor Author

🏷 🚀

@shiftkey shiftkey self-assigned this Jul 26, 2017
@desktop desktop deleted a comment Jul 26, 2017

@shiftkey shiftkey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of minor questions, but ❤️ for digging into this and testing the deployed builds like a pro.

.catch(e => {
log.error(`Failed handling Squirrel event: ${arg}`, e)
})
.then(() => {

This comment was marked as spam.

This comment was marked as spam.

}

app.quit()
if (shellNeedsPatching(process)) {

This comment was marked as spam.

This comment was marked as spam.

Comment thread app/src/main-process/main.ts Outdated
mainWindow.restore()
}
let isDuplicateInstance = false
// If we're handling a Squirrel event we don't wanna enforce single instance. We

This comment was marked as spam.

@joshaber

Copy link
Copy Markdown
Contributor Author

🔰

@shiftkey

Copy link
Copy Markdown
Member

🌔

@shiftkey
shiftkey merged commit 6085394 into master Jul 26, 2017
@shiftkey
shiftkey deleted the squirrel-it-away branch July 26, 2017 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants