Skip to content

Commit

Permalink
Bugfix pichillilorenzo#1602 windowType not checked in show function M…
Browse files Browse the repository at this point in the history
…acOS
  • Loading branch information
dmeuwissen committed Mar 29, 2023
1 parent a42b0e4 commit 0637ccc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions macos/Classes/InAppBrowser/InAppBrowserWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,13 @@ public class InAppBrowserWindow : NSWindow, NSWindowDelegate, NSToolbarDelegate,
!(NSApplication.shared.mainWindow?.tabbedWindows?.contains(self) ?? false),
browserSettings?.windowType == .tabbed {
NSApplication.shared.mainWindow?.addTabbedWindow(self, ordered: .above)
} else if !(NSApplication.shared.mainWindow?.childWindows?.contains(self) ?? false) {
} else if !(NSApplication.shared.mainWindow?.childWindows?.contains(self) ?? false),
browserSettings?.windowType == .child {
NSApplication.shared.mainWindow?.addChildWindow(self, ordered: .above)
} else {
orderFront(self)
}
NSApplication.shared.activate(ignoringOtherApps: true)
NSApplication.shared.activate(ignoringOtherApps: true)
}

public func setSettings(newSettings: InAppBrowserSettings, newSettingsMap: [String: Any]) {
Expand Down

0 comments on commit 0637ccc

Please sign in to comment.