Skip to content

Commit

Permalink
Fix some UI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Not-A-Normal-Robot committed Oct 22, 2024
1 parent 6600c23 commit 70357cc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ui/main.slint
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ export component MainWindow inherits Window {
}
HorizontalLayout {
LineEdit {
width: 100%;
height: 3.14rem;
text: settings.game_repo_path;
placeholder-text: "Path to game repo";
Expand Down Expand Up @@ -432,7 +431,6 @@ export component SetupWindow inherits Window {
HorizontalLayout {
spacing: 8px;
game_repo_path_input := LineEdit {
width: 100%;
height: 3.14rem;
text: game_repo_path;
placeholder-text: "Path to game repo";
Expand Down Expand Up @@ -465,12 +463,15 @@ export component SetupWindow inherits Window {
clicked => { finish(); }
}
}
if (!dir_empty): Text {
if (!dir_empty && !repo_valid): Text {
text: "Cannot download here as the directory is not empty.";
}
if (!repo_valid): Text {
text: "Cannot finish setup yet as the directory is not a valid Git repository.";
}
if(repo_valid): Text {
text: "The repository is valid! You can now finish the setup.";
}
}
}
}
Expand Down

0 comments on commit 70357cc

Please sign in to comment.