Skip to content

Commit

Permalink
Prevent the splash window state from being updated repeatedly
Browse files Browse the repository at this point in the history
  • Loading branch information
fofajardo committed Nov 19, 2020
1 parent e83db09 commit f0c43be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/content/splash.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ var splash = {
window.sizeToContent();
},

isWindowUpdated: false,
updateWindowState: function () {
if (Services.appinfo.OS != "WINNT") {
if (Services.appinfo.OS != "WINNT" || splash.isWindowUpdated) {
return;
}

Expand Down Expand Up @@ -146,6 +147,8 @@ var splash = {

lib.close();
} catch (e) {}

splash.isWindowUpdated = true;
}
};

Expand Down

0 comments on commit f0c43be

Please sign in to comment.