Added confirm to delete (#1698)
This commit is contained in:
@@ -234,7 +234,10 @@ void GameViewer::RemoveGame(wxCommandEvent& event)
|
|||||||
long i = GetFirstSelected();
|
long i = GetFirstSelected();
|
||||||
if (i < 0) return;
|
if (i < 0) return;
|
||||||
|
|
||||||
|
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());
|
fs::remove_all(vfs::get(m_path) + this->GetItemText(i, 6).ToStdString());
|
||||||
|
}
|
||||||
|
|
||||||
Refresh();
|
Refresh();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user