From 14b697b1dcb6498e08f78500dfb4f83d38476028 Mon Sep 17 00:00:00 2001 From: ProgrammingHobby Date: Sat, 29 Oct 2022 22:00:07 +0200 Subject: [PATCH] Auffrischen der Directory-Anzeige nach Dateioperationen korrigiert. --- CIFE/Sources/MainWindow.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CIFE/Sources/MainWindow.cpp b/CIFE/Sources/MainWindow.cpp index 09ce174..fb54efd 100644 --- a/CIFE/Sources/MainWindow.cpp +++ b/CIFE/Sources/MainWindow.cpp @@ -490,7 +490,7 @@ void MainWindow::onDelete(wxCommandEvent &event) { } cpmtools->deleteFile(files); - onRefresh(event); + showDirectory(); } } @@ -510,7 +510,7 @@ void MainWindow::onRename(wxCommandEvent &event) { int newUser = dialog->getNewUser(); newName = wxString::Format(("%i"), newUser) + ":" + newName; cpmtools->renameFile(oldName, newName); - onRefresh(event); + showDirectory(); } wxDELETE(dialog); @@ -610,7 +610,7 @@ void MainWindow::onAttributes(wxCommandEvent &event) { if (dialog->ShowModal() == wxID_OK) { cpmtools->setFileAttributes(name, dialog->getAttributes()); - onRefresh(event); + showDirectory(); } wxDELETE(dialog); @@ -626,7 +626,7 @@ void MainWindow::onProtections(wxCommandEvent &event) { if (dialog->ShowModal() == wxID_OK) { cpmtools->setFileProtections(name, dialog->getProtections()); - onRefresh(event); + showDirectory(); } wxDELETE(dialog); @@ -688,5 +688,4 @@ void MainWindow::onDropFiles(wxDropFilesEvent &event) { } } - // --------------------------------------------------------------------------------