If resuming app that opened more than 3 windows in apps launcher screen,
only one window is removed from window list.
This patch removes all windows except main window when reloading app.
Change-Id: I3059f2007889a04ccbf8fa7591e85241989fba7a
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
private closeWindows() {
this.profileDelegate.clearSuface(this.mainWindow.webContents);
- this.windowList.forEach((window) => {
+ this.windowList.slice().forEach((window) => {
if (window != this.mainWindow)
window.destroy();
});