mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-02 15:02:11 +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();
|
long i = GetFirstSelected();
|
||||||
if (i < 0) return;
|
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();
|
Refresh();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user