mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Ticket #119: Persistent global configuration option for "Preserve attributes" wanted
Currently, there is no way to change the defaults. The file mask dialog options are not persistent. Added new config option 'copymove_persistent_attr'. If this option is equal to '0' then 'Preserve attributes' in copy/move dialog will always switched off. Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
2445ccf9b9
commit
27cc9ac15e
@ -166,6 +166,9 @@ filegui__check_attrs_on_fs(const char *fs_path)
|
||||
{
|
||||
struct statfs stfs;
|
||||
|
||||
if (!setup_copymove_persistent_attr)
|
||||
return 0;
|
||||
|
||||
if (statfs(fs_path, &stfs)!=0)
|
||||
return 1;
|
||||
|
||||
|
@ -89,6 +89,7 @@ int startup_right_mode;
|
||||
/* Ugly hack to allow panel_save_setup to work as a place holder for */
|
||||
/* default panel values */
|
||||
int saving_setup;
|
||||
int setup_copymove_persistent_attr = 1;
|
||||
|
||||
static const struct {
|
||||
const char *key;
|
||||
@ -225,6 +226,7 @@ static const struct {
|
||||
{ "mcview_remember_file_position", &mcview_remember_file_position },
|
||||
{ "auto_fill_mkdir_name", &auto_fill_mkdir_name },
|
||||
{ "reverse_files_only", &reverse_files_only },
|
||||
{ "copymove_persistent_attr", &setup_copymove_persistent_attr },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
|
@ -35,4 +35,6 @@ extern int verbose;
|
||||
extern int mouse_close_dialog;
|
||||
extern int reverse_files_only;
|
||||
|
||||
extern int setup_copymove_persistent_attr;
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user