mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-18 10:41:26 +00:00
add trailing slash when WebDAV Url gets copied to the clipboard
This commit is contained in:
@@ -61,6 +61,8 @@ public class UnlockedController implements ViewController {
|
||||
private static final int IO_SAMPLING_STEPS = 100;
|
||||
private static final double IO_SAMPLING_INTERVAL = 0.25;
|
||||
|
||||
private static final String TRAILING_SLASH = "/";
|
||||
|
||||
private final Localization localization;
|
||||
private final AsyncTaskService asyncTaskService;
|
||||
private final ObjectProperty<Vault> vault = new SimpleObjectProperty<>();
|
||||
@@ -244,8 +246,8 @@ public class UnlockedController implements ViewController {
|
||||
@FXML
|
||||
private void didClickCopyUrl(ActionEvent event) {
|
||||
ClipboardContent clipboardContent = new ClipboardContent();
|
||||
clipboardContent.putUrl(vault.get().getWebDavUrl());
|
||||
clipboardContent.putString(vault.get().getWebDavUrl());
|
||||
clipboardContent.putUrl(vault.get().getWebDavUrl() + TRAILING_SLASH);
|
||||
clipboardContent.putString(vault.get().getWebDavUrl() + TRAILING_SLASH);
|
||||
Clipboard.getSystemClipboard().setContent(clipboardContent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user