Skip to content

Commit

Permalink
Fixed opening infinite browser windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lvsti committed Jul 29, 2018
1 parent 24cbf73 commit f887b8b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Ilion/Ilion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ public protocol IlionDelegate: class {
}

@objc public func start() {
browserWindowController = BrowserWindowController()
browserWindowController?.delegate = self
browserWindowController?.window?.makeKeyAndOrderFront(self)
if browserWindowController == nil {
browserWindowController = BrowserWindowController()
browserWindowController?.delegate = self
_ = browserWindowController?.window
browserWindowController?.configure(with: StringsManager.defaultManager.db)
}

browserWindowController?.configure(with: StringsManager.defaultManager.db)
browserWindowController?.window?.makeKeyAndOrderFront(self)

setUpExportFlow()
}
Expand Down

0 comments on commit f887b8b

Please sign in to comment.