mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-20 19:51:27 +00:00
#627: refactor adding trailing slash to copied WebDAV URL
This commit is contained in:
@@ -61,8 +61,6 @@ 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<>();
|
||||
@@ -246,8 +244,8 @@ public class UnlockedController implements ViewController {
|
||||
@FXML
|
||||
private void didClickCopyUrl(ActionEvent event) {
|
||||
ClipboardContent clipboardContent = new ClipboardContent();
|
||||
clipboardContent.putUrl(vault.get().getWebDavUrl() + TRAILING_SLASH);
|
||||
clipboardContent.putString(vault.get().getWebDavUrl() + TRAILING_SLASH);
|
||||
clipboardContent.putUrl(vault.get().getWebDavUrl());
|
||||
clipboardContent.putString(vault.get().getWebDavUrl());
|
||||
Clipboard.getSystemClipboard().setContent(clipboardContent);
|
||||
}
|
||||
|
||||
|
||||
@@ -251,7 +251,7 @@ public class Vault {
|
||||
}
|
||||
|
||||
public synchronized String getWebDavUrl() {
|
||||
return servlet.getServletRootUri().toString();
|
||||
return servlet.getServletRootUri().toString() + "/";
|
||||
}
|
||||
|
||||
public Path getPath() {
|
||||
|
||||
Reference in New Issue
Block a user