added onappear reset to importVie

This commit is contained in:
neon443
2025-05-05 08:57:45 +01:00
parent ffbd17fad8
commit 1bbacd0caa

View File

@@ -48,6 +48,12 @@ struct ImportView: View {
Label("Import", systemImage: "tray.and.arrow.down.fill") Label("Import", systemImage: "tray.and.arrow.down.fill")
} }
.disabled(importStr.isEmpty) .disabled(importStr.isEmpty)
.onAppear() {
importStr = ""
image = "clock.fill"
text = "Ready..."
fgColor = .yellow
}
} }
} }