diff options
-rw-r--r-- | WireGuard/WireGuard/Base.lproj/Localizable.strings | 1 | ||||
-rw-r--r-- | WireGuard/WireGuard/UI/macOS/ImportPanelPresenter.swift | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/Base.lproj/Localizable.strings b/WireGuard/WireGuard/Base.lproj/Localizable.strings index 3cfe1fc..09c669e 100644 --- a/WireGuard/WireGuard/Base.lproj/Localizable.strings +++ b/WireGuard/WireGuard/Base.lproj/Localizable.strings @@ -243,6 +243,7 @@ "macDeleteTunnelConfirmationAlertButtonTitleCancel" = "Cancel"; "macButtonImportTunnels" = "Import tunnel(s) from file"; +"macSheetButtonImport" = "Import"; // Mac detail/edit view fields diff --git a/WireGuard/WireGuard/UI/macOS/ImportPanelPresenter.swift b/WireGuard/WireGuard/UI/macOS/ImportPanelPresenter.swift index b1ed2f5..03b1be7 100644 --- a/WireGuard/WireGuard/UI/macOS/ImportPanelPresenter.swift +++ b/WireGuard/WireGuard/UI/macOS/ImportPanelPresenter.swift @@ -7,6 +7,7 @@ class ImportPanelPresenter { static func presentImportPanel(tunnelsManager: TunnelsManager, sourceVC: NSViewController) { guard let window = sourceVC.view.window else { return } let openPanel = NSOpenPanel() + openPanel.prompt = tr("macSheetButtonImport") openPanel.allowedFileTypes = ["conf", "zip"] openPanel.beginSheetModal(for: window) { [weak tunnelsManager] response in guard let tunnelsManager = tunnelsManager else { return } |