Skip to content

Commit

Permalink
Close popovers when opening links
Browse files Browse the repository at this point in the history
  • Loading branch information
pakerwreah committed Dec 18, 2024
1 parent bb3db15 commit bab1981
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Calendr/Providers/WorkspaceServiceProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,12 @@ class Workspace: WorkspaceServiceProviding {
}

func open(_ url: URL) -> Bool {
workspace.open(url)
Popover.closeAll()
return workspace.open(url)
}

func open(_ link: EventLink) -> Bool {
Popover.closeAll()
guard
!link.isNative,
let browserPath = userDefaults.defaultBrowserPerCalendar[link.calendarId],
Expand Down

0 comments on commit bab1981

Please sign in to comment.