pull up definition and remove include

This commit is contained in:
Shelley Vohr 2018-04-14 21:23:05 -04:00
parent 8b4a89c445
commit 1727a9eca9
No known key found for this signature in database
GPG key ID: F13993A75599653C
3 changed files with 7 additions and 4 deletions

View file

@ -104,6 +104,8 @@ void AutoUpdater::SetFeedURL(mate::Arguments* args) {
}
void AutoUpdater::QuitAndInstall() {
Emit("before-quit-for-update");
// If we don't have any window then quitAndInstall immediately.
if (WindowList::IsEmpty()) {
auto_updater::AutoUpdater::QuitAndInstall();