mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-30 15:17:27 +00:00
Added confirm to delete (#1698)
This commit is contained in:
parent
aafcf44581
commit
805c778f91
@ -233,8 +233,11 @@ void GameViewer::RemoveGame(wxCommandEvent& event)
|
||||
{
|
||||
long i = GetFirstSelected();
|
||||
if (i < 0) return;
|
||||
|
||||
fs::remove_all(vfs::get(m_path) + this->GetItemText(i, 6).ToStdString());
|
||||
|
||||
if (wxMessageBox("Permanently delete game files?", "Confirm Delete", wxYES_NO | wxNO_DEFAULT) == wxYES)
|
||||
{
|
||||
fs::remove_all(vfs::get(m_path) + this->GetItemText(i, 6).ToStdString());
|
||||
}
|
||||
|
||||
Refresh();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user