mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Reset state of copy share link button after 3 seconds
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
c345b22bf2
commit
7db143469a
@ -860,6 +860,7 @@ Page {
|
||||
clipboardHelper.clear();
|
||||
|
||||
shareLinkCopied = true;
|
||||
shareLinkCopyTimer.start();
|
||||
}
|
||||
|
||||
property bool shareLinkCopied: false
|
||||
@ -883,6 +884,12 @@ Page {
|
||||
id: clipboardHelper
|
||||
visible: false
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: shareLinkCopyTimer
|
||||
interval: 3000
|
||||
onTriggered: copyShareLinkButton.shareLinkCopied = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user