mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
Qt: stop batch compilation immediately on cancel
This commit is contained in:
parent
2614450e4b
commit
51417cc8c3
@ -2414,6 +2414,14 @@ void game_list_frame::BatchCreateCPUCaches(const std::vector<game_info>& game_da
|
|||||||
pdlg->setAutoReset(false);
|
pdlg->setAutoReset(false);
|
||||||
pdlg->open();
|
pdlg->open();
|
||||||
|
|
||||||
|
connect(pdlg, &progress_dialog::canceled, this, []()
|
||||||
|
{
|
||||||
|
if (!Emu.IsStopped())
|
||||||
|
{
|
||||||
|
Emu.GracefulShutdown(false, true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
BatchActionBySerials(pdlg, serials, tr("%0\nProgress: %1/%2 caches compiled").arg(main_label),
|
BatchActionBySerials(pdlg, serials, tr("%0\nProgress: %1/%2 caches compiled").arg(main_label),
|
||||||
[&, game_data](const std::string& serial)
|
[&, game_data](const std::string& serial)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user