From ec8b65c24834f5b783cf24cffdfda0d2538865bc Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 1 Aug 2024 15:32:07 +0800 Subject: [PATCH] Add warn image to locking view if there is an error Signed-off-by: Claudio Cambra --- .../FileProviderUIExt/Locking/LockViewController.swift | 2 ++ .../FileProviderUIExt/Locking/LockViewController.xib | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.swift index 4e033740a4..3b49c097d5 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.swift @@ -21,6 +21,7 @@ class LockViewController: NSViewController { @IBOutlet weak var descriptionLabel: NSTextField! @IBOutlet weak var closeButton: NSButton! @IBOutlet weak var loadingIndicator: NSProgressIndicator! + @IBOutlet weak var warnImage: NSImageView! public override var nibName: NSNib.Name? { return NSNib.Name(self.className) @@ -66,6 +67,7 @@ class LockViewController: NSViewController { private func stopIndicatingLoading() { loadingIndicator.stopAnimation(self) loadingIndicator.isHidden = true + warnImage.isHidden = false } private func presentError(_ error: String) { diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.xib b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.xib index cf0a91eeda..6df0fea32b 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.xib +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.xib @@ -15,6 +15,7 @@ + @@ -29,6 +30,10 @@ + @@ -90,19 +95,23 @@ + + + + @@ -111,6 +120,7 @@ +