Do not display already-exists message when name isn't changed
Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
parent
cfe045827d
commit
f43f500302
1 changed files with 1 additions and 1 deletions
|
|
@ -3962,7 +3962,7 @@ impl Application for App {
|
||||||
None
|
None
|
||||||
} else {
|
} else {
|
||||||
let path = parent.join(name);
|
let path = parent.join(name);
|
||||||
if path.exists() {
|
if from != &path && path.exists() {
|
||||||
if path.is_dir() {
|
if path.is_dir() {
|
||||||
dialog = dialog
|
dialog = dialog
|
||||||
.tertiary_action(widget::text::body(fl!("folder-already-exists")));
|
.tertiary_action(widget::text::body(fl!("folder-already-exists")));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue