Defer browser import dialog presentation
This commit is contained in:
parent
9807cb087b
commit
c5ae8dc9eb
2 changed files with 12 additions and 6 deletions
|
|
@ -1470,9 +1470,11 @@ struct BrowserPanelView: View {
|
|||
|
||||
private func presentImportDialogFromHint() {
|
||||
isBrowserImportHintPopoverPresented = false
|
||||
BrowserDataImportCoordinator.shared.presentImportDialog(
|
||||
defaultDestinationProfileID: panel.profileID
|
||||
)
|
||||
DispatchQueue.main.async {
|
||||
BrowserDataImportCoordinator.shared.presentImportDialog(
|
||||
defaultDestinationProfileID: panel.profileID
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
private func openBrowserImportSettings() {
|
||||
|
|
|
|||
|
|
@ -2037,7 +2037,9 @@ private struct BrowserImportHintDebugView: View {
|
|||
AppDelegate.presentPreferencesWindow(navigationTarget: .browser)
|
||||
}
|
||||
Button("Open Import Dialog") {
|
||||
BrowserDataImportCoordinator.shared.presentImportDialog()
|
||||
DispatchQueue.main.async {
|
||||
BrowserDataImportCoordinator.shared.presentImportDialog()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -4650,8 +4652,10 @@ struct SettingsView: View {
|
|||
|
||||
HStack(spacing: 8) {
|
||||
Button(String(localized: "settings.browser.import.choose", defaultValue: "Choose…")) {
|
||||
BrowserDataImportCoordinator.shared.presentImportDialog()
|
||||
refreshDetectedImportBrowsers()
|
||||
DispatchQueue.main.async {
|
||||
BrowserDataImportCoordinator.shared.presentImportDialog()
|
||||
refreshDetectedImportBrowsers()
|
||||
}
|
||||
}
|
||||
.buttonStyle(.bordered)
|
||||
.controlSize(.small)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue