Skip to content

Commit

Permalink
Fixed panic when only using custom CSS path
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikReider committed Dec 10, 2023
1 parent 0291200 commit a0709bc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/global_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,14 @@ pub(crate) fn handle_application_args(
}

// sort actions so that they always get executed in the correct order
for i in 0..actions.len() - 1 {
for j in i + 1..actions.len() {
if actions[i].0 > actions[j].0 {
let temp = actions[i].clone();
actions[i] = actions[j].clone();
actions[j] = temp;
if actions.len() > 0 {
for i in 0..actions.len() - 1 {
for j in i + 1..actions.len() {
if actions[i].0 > actions[j].0 {
let temp = actions[i].clone();
actions[i] = actions[j].clone();
actions[j] = temp;
}
}
}
}
Expand Down

0 comments on commit a0709bc

Please sign in to comment.