mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-02 22:21:39 +03:00

confirmation may be requested when deleting directory hotlist entries based on a user configurable setting. * src/file.h (safe_delete): Move declaration of `safe_delete' * src/main.h: ... here. (confirm_directory_hotlist_delete): Declare new global variable. * src/file.c (safe_delete): Move definition of `safe_delete' * src/main.c: ... here. (confirm_directory_hotlist_delete): Define new global variable. * src/hotlist.c (remove_from_hotlist): Based on a user configurable setting, request confirmation when removing directory hotlist entries. The confirmation dialog honours the `Safe delete' setting. Reorder the buttons in the hotlist group removal confirmation dialog so that it becomes consistent with other confirmation boxes. * src/setup.c (int_options): Add support for user configurable confirmation of directory hotlist entries removal. * src/boxes.c (conf_widgets): Likewise. (confirm_box): Likewise. (my_directory_hotlist_delete): New module variable.