Do not display already-exists message when name isn't changed

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk 2025-01-24 17:28:53 +01:00 committed by Jeremy Soller
parent cfe045827d
commit f43f500302

View file

@ -3962,7 +3962,7 @@ impl Application for App {
None
} else {
let path = parent.join(name);
if path.exists() {
if from != &path && path.exists() {
if path.is_dir() {
dialog = dialog
.tertiary_action(widget::text::body(fl!("folder-already-exists")));