Merge pull request #318 from manaflow-ai/issue-122-import-browser-cookies-history-settings
Browser: import data from detected installed browsers
This commit is contained in:
commit
746fb8e5ec
13 changed files with 6600 additions and 35 deletions
|
|
@ -2386,7 +2386,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCent
|
|||
stopSocketListenerHealthMonitor()
|
||||
TerminalController.shared.stop()
|
||||
VSCodeServeWebController.shared.stop()
|
||||
BrowserHistoryStore.shared.flushPendingSaves()
|
||||
BrowserProfileStore.shared.flushPendingSaves()
|
||||
if TelemetrySettings.enabledForCurrentLaunch {
|
||||
PostHogAnalytics.shared.flush()
|
||||
}
|
||||
|
|
@ -8861,7 +8861,14 @@ final class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCent
|
|||
|
||||
@discardableResult
|
||||
func openBrowserAndFocusAddressBar(url: URL? = nil, insertAtEnd: Bool = false) -> UUID? {
|
||||
guard let panelId = tabManager?.openBrowser(url: url, insertAtEnd: insertAtEnd) else {
|
||||
let preferredProfileID =
|
||||
tabManager?.focusedBrowserPanel?.profileID
|
||||
?? tabManager?.selectedWorkspace?.preferredBrowserProfileID
|
||||
guard let panelId = tabManager?.openBrowser(
|
||||
url: url,
|
||||
preferredProfileID: preferredProfileID,
|
||||
insertAtEnd: insertAtEnd
|
||||
) else {
|
||||
#if DEBUG
|
||||
dlog(
|
||||
"browser.focus.openAndFocus result=open_failed insertAtEnd=\(insertAtEnd ? 1 : 0) " +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue