watch cursor while loading party
This commit is contained in:
@@ -2915,15 +2915,16 @@ bool handle_scroll(const sf::Event& event) {
|
|||||||
|
|
||||||
void do_load() {
|
void do_load() {
|
||||||
// TODO this needs to be changed/moved because a picker dialog opens now!!!
|
// TODO this needs to be changed/moved because a picker dialog opens now!!!
|
||||||
|
// TODO wait, I thought I resolved that.^
|
||||||
// Edge case: Replay can be cut off before a file is chosen,
|
// Edge case: Replay can be cut off before a file is chosen,
|
||||||
// or party selection can be canceled, and this will cause
|
// or party selection can be canceled, and this will cause
|
||||||
// a crash trying to decode a party
|
// a crash trying to decode a party
|
||||||
if(replaying && !has_next_action("load_party")){
|
if(replaying && !has_next_action("load_party")){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fs::path file_to_load = run_file_picker(false);
|
fs::path file_to_load = run_file_picker(false);
|
||||||
if(file_to_load.empty()) return;
|
if(file_to_load.empty()) return;
|
||||||
|
set_cursor(watch_curs);
|
||||||
if(!load_party(file_to_load, univ))
|
if(!load_party(file_to_load, univ))
|
||||||
return;
|
return;
|
||||||
finish_load_party();
|
finish_load_party();
|
||||||
@@ -2931,6 +2932,7 @@ void do_load() {
|
|||||||
post_load();
|
post_load();
|
||||||
univ.file = file_to_load;
|
univ.file = file_to_load;
|
||||||
menu_activate();
|
menu_activate();
|
||||||
|
restore_cursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
void post_load() {
|
void post_load() {
|
||||||
|
Reference in New Issue
Block a user