mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
FileManager: Show progress dialog for file deletions
Progress dialogs are nice! :^) Showing a proper file-deletion animation would be nice, but that is outside the scope of my abilities.
This commit is contained in:
parent
967314023c
commit
469bca9d3a
3 changed files with 20 additions and 38 deletions
|
@ -10,16 +10,15 @@
|
|||
#include <AK/String.h>
|
||||
#include <LibCore/Forward.h>
|
||||
#include <LibGUI/Forward.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
namespace FileManager {
|
||||
|
||||
enum class FileOperation {
|
||||
Copy = 0,
|
||||
Move
|
||||
Move,
|
||||
Delete,
|
||||
};
|
||||
|
||||
void delete_path(String const&, GUI::Window*);
|
||||
void delete_paths(Vector<String> const&, bool should_confirm, GUI::Window*);
|
||||
|
||||
void run_file_operation(FileOperation, Vector<String> const& sources, String const& destination, GUI::Window*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue