mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Properly trim file path everywhere in chooser
This commit is contained in:
parent
1a29d14a79
commit
770c9eb309
1 changed files with 2 additions and 2 deletions
|
@ -85,8 +85,8 @@ public class ContextualFileReferenceChoiceComp extends SimpleComp {
|
|||
|
||||
try {
|
||||
var data = DataStorage.get().getDataDir();
|
||||
var f = data.resolve(FileNames.getFileName(filePath.getValue()));
|
||||
var source = Path.of(filePath.getValue());
|
||||
var f = data.resolve(FileNames.getFileName(filePath.getValue().trim()));
|
||||
var source = Path.of(filePath.getValue().trim());
|
||||
if (Files.exists(source)) {
|
||||
var shouldCopy = AppWindowHelper.showBlockingAlert(alert -> {
|
||||
alert.setTitle(AppI18n.get("confirmGitShareTitle"));
|
||||
|
|
Loading…
Reference in a new issue