Merge pull request #1723 from lucaxvi/master

Change first launch action fixes #1622
This commit is contained in:
Charles Gagnon
2022-12-15 18:51:11 -05:00
committed by GitHub

View File

@@ -1014,7 +1014,7 @@ var TaskbarAppIcon = GObject.registerClass({
}
_launchNewInstance() {
if (this.app.can_open_new_window()) {
if (this.app.can_open_new_window() && this.app.state == Shell.AppState.RUNNING) {
let appActions = this.app.get_app_info().list_actions();
let newWindowIndex = appActions.indexOf('new-window');