Skip to content

Commit

Permalink
Add progress bar when opening scenes
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjtxietian committed Apr 16, 2024
1 parent d007340 commit 68b8fe4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/filesystem_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2324,8 +2324,11 @@ void FileSystemDock::_file_option(int p_option, const Vector<String> &p_selected
selected = tree->get_next_selected(selected);
}
// Open the file.
EditorProgress ep("Open Scenes", TTR("Open Scenes"), p_selected.size());
int step_count = 0;
for (int i = 0; i < p_selected.size(); i++) {
_select_file(p_selected[i]);
ep.step(TTR("Opening Scenes..."), step_count++);
}
} break;

Expand Down

0 comments on commit 68b8fe4

Please sign in to comment.