mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
Parameter 'Erase at end' now shows in setup box
This commit is contained in:
parent
08cca8aae8
commit
c40f676dcd
3
po/ru.po
3
po/ru.po
@ -1917,6 +1917,9 @@ msgstr "Автоим&я каталога"
|
|||||||
msgid "&Preallocate space"
|
msgid "&Preallocate space"
|
||||||
msgstr "Предварительно в&ыделить место"
|
msgstr "Предварительно в&ыделить место"
|
||||||
|
|
||||||
|
msgid "&Erase at end of move"
|
||||||
|
msgstr "&Удалять в конце переноса"
|
||||||
|
|
||||||
msgid "Esc key mode"
|
msgid "Esc key mode"
|
||||||
msgstr "Клавиша Esc"
|
msgstr "Клавиша Esc"
|
||||||
|
|
||||||
|
@ -554,6 +554,7 @@ configure_box (void)
|
|||||||
QUICK_CHECKBOX (N_("Mkdi&r autoname"), &auto_fill_mkdir_name, NULL),
|
QUICK_CHECKBOX (N_("Mkdi&r autoname"), &auto_fill_mkdir_name, NULL),
|
||||||
QUICK_CHECKBOX (N_("&Preallocate space"), &mc_global.vfs.preallocate_space,
|
QUICK_CHECKBOX (N_("&Preallocate space"), &mc_global.vfs.preallocate_space,
|
||||||
NULL),
|
NULL),
|
||||||
|
QUICK_CHECKBOX (N_("&Erase at end of move"), &erase_at_end, NULL),
|
||||||
QUICK_STOP_GROUPBOX,
|
QUICK_STOP_GROUPBOX,
|
||||||
QUICK_START_GROUPBOX (N_("Esc key mode")),
|
QUICK_START_GROUPBOX (N_("Esc key mode")),
|
||||||
QUICK_CHECKBOX (N_("S&ingle press"), &old_esc_mode, &configure_old_esc_mode_id),
|
QUICK_CHECKBOX (N_("S&ingle press"), &old_esc_mode, &configure_old_esc_mode_id),
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
#include <src/setup.h>
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
@ -80,7 +81,7 @@ file_op_context_new (FileOperation op)
|
|||||||
ctx->preserve = TRUE;
|
ctx->preserve = TRUE;
|
||||||
ctx->preserve_uidgid = (geteuid () == 0);
|
ctx->preserve_uidgid = (geteuid () == 0);
|
||||||
ctx->umask_kill = 0777777;
|
ctx->umask_kill = 0777777;
|
||||||
ctx->erase_at_end = TRUE;
|
ctx->erase_at_end = erase_at_end;
|
||||||
ctx->skip_all = FALSE;
|
ctx->skip_all = FALSE;
|
||||||
|
|
||||||
return ctx;
|
return ctx;
|
||||||
|
@ -161,6 +161,9 @@ gboolean only_leading_plus_minus = TRUE;
|
|||||||
/* Automatically fills name with current selected item name on mkdir */
|
/* Automatically fills name with current selected item name on mkdir */
|
||||||
gboolean auto_fill_mkdir_name = TRUE;
|
gboolean auto_fill_mkdir_name = TRUE;
|
||||||
|
|
||||||
|
/* Erase files and directories at the end of moving */
|
||||||
|
gboolean erase_at_end = TRUE;
|
||||||
|
|
||||||
/* If set and you don't have subshell support, then C-o will give you a shell */
|
/* If set and you don't have subshell support, then C-o will give you a shell */
|
||||||
gboolean output_starts_shell = FALSE;
|
gboolean output_starts_shell = FALSE;
|
||||||
|
|
||||||
@ -365,6 +368,7 @@ static const struct
|
|||||||
{ "shadows", &mc_global.tty.shadows },
|
{ "shadows", &mc_global.tty.shadows },
|
||||||
{ "mcview_remember_file_position", &mcview_remember_file_position },
|
{ "mcview_remember_file_position", &mcview_remember_file_position },
|
||||||
{ "auto_fill_mkdir_name", &auto_fill_mkdir_name },
|
{ "auto_fill_mkdir_name", &auto_fill_mkdir_name },
|
||||||
|
{ "erase_at_end", &erase_at_end },
|
||||||
{ "copymove_persistent_attr", ©move_persistent_attr },
|
{ "copymove_persistent_attr", ©move_persistent_attr },
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
|
@ -95,6 +95,7 @@ extern gboolean auto_save_setup;
|
|||||||
extern gboolean only_leading_plus_minus;
|
extern gboolean only_leading_plus_minus;
|
||||||
extern int cd_symlinks;
|
extern int cd_symlinks;
|
||||||
extern gboolean auto_fill_mkdir_name;
|
extern gboolean auto_fill_mkdir_name;
|
||||||
|
extern gboolean erase_at_end;
|
||||||
extern gboolean output_starts_shell;
|
extern gboolean output_starts_shell;
|
||||||
#ifdef USE_FILE_CMD
|
#ifdef USE_FILE_CMD
|
||||||
extern gboolean use_file_to_check_type;
|
extern gboolean use_file_to_check_type;
|
||||||
|
Loading…
Reference in New Issue
Block a user