Skip to content

Commit

Permalink
Add logging to the correct spot
Browse files Browse the repository at this point in the history
  • Loading branch information
buthed010203 authored Jan 3, 2024
1 parent 4e1dad7 commit 0e7d694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/mindustry/ui/dialogs/SchematicBrowserDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public SchematicBrowserDialog(){
}

void setup(){
Time.mark();
search = "";

cont.top();
Expand Down Expand Up @@ -112,6 +113,7 @@ void setup(){
};
rebuildPane.run();
}).grow().scrollX(false);
Log.info("Rebuilt Schematic Browser in @ms", Time.elapsed());
}

void setupRepoUi(Table table, String searchString, String repo){
Expand Down Expand Up @@ -508,7 +510,6 @@ void setup(){
}

void rebuild(){
Time.mark();
repoTable.clear();
repoTable.defaults().pad(5f).left();
for (var i = 0; i < ui.schematicBrowser.repositoryLinks.size; i++) {
Expand Down Expand Up @@ -547,7 +548,6 @@ void rebuild(){
repoTable.add(table);
repoTable.row();
}
Log.info("Rebuilt Schematic Browser in @ms", Time.elapsed());
}

void editRepo(String link, Consumer<String> onClose){
Expand Down

0 comments on commit 0e7d694

Please sign in to comment.