Skip to content

Commit 3951f93

Browse files
committed
fix: empty history is okay, empty out dir is not
1 parent 09a901d commit 3951f93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/gui/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub fn Input(
7777
},
7878
"Pick History Folder"
7979
}
80-
if !history.read().is_empty() {
80+
if !out_dir.read().is_empty() {
8181
p { "Chosen History Directory: { out_dir.read() }" }
8282
p { "Found { history.read().len() } pairs in the history." }
8383
}
@@ -102,7 +102,7 @@ pub fn Results(
102102
button {
103103
id: "generate",
104104
onclick: move |_ev| {
105-
if people.is_empty() || history.read().is_empty() {
105+
if people.is_empty() || out_dir.read().is_empty() {
106106
return;
107107
}
108108
let out = pair(people.clone(), &history.read());

0 commit comments

Comments
 (0)