mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
NANDImporter: Use a indeterminate progress meter
This commit is contained in:
@ -1279,11 +1279,7 @@ void CFrame::OnImportBootMiiBackup(wxCommandEvent& WXUNUSED(event))
|
||||
|
||||
wxProgressDialog dialog(_("Importing NAND backup"), _("Working..."), 100, this,
|
||||
wxPD_APP_MODAL | wxPD_ELAPSED_TIME | wxPD_SMOOTH);
|
||||
DiscIO::NANDImporter().ImportNANDBin(file_name,
|
||||
[&dialog](size_t current_entry, size_t total_entries) {
|
||||
dialog.SetRange(total_entries);
|
||||
dialog.Update(current_entry);
|
||||
});
|
||||
DiscIO::NANDImporter().ImportNANDBin(file_name, [&dialog] { dialog.Pulse(); });
|
||||
UpdateLoadWiiMenuItem();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user