mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
Merge branch '3096_save_setup_message'
* 3096_save_setup_message: Ticket #3096: clarify "Setup saved to ~/.config/mc/ini" message.
This commit is contained in:
commit
ab344e21b0
@ -1702,17 +1702,17 @@ void
|
|||||||
save_setup_cmd (void)
|
save_setup_cmd (void)
|
||||||
{
|
{
|
||||||
vfs_path_t *vpath;
|
vfs_path_t *vpath;
|
||||||
char *path;
|
const char *path;
|
||||||
|
|
||||||
vpath = mc_config_get_full_vpath (MC_CONFIG_FILE);
|
vpath = vfs_path_from_str_flags (mc_config_get_path (), VPF_STRIP_HOME);
|
||||||
path = vfs_path_to_str_flags (vpath, 0, VPF_STRIP_HOME);
|
path = vfs_path_as_str (vpath);
|
||||||
vfs_path_free (vpath);
|
|
||||||
|
|
||||||
if (save_setup (TRUE, TRUE))
|
if (save_setup (TRUE, TRUE))
|
||||||
message (D_NORMAL, _("Setup"), _("Setup saved to %s"), path);
|
message (D_NORMAL, _("Setup"), _("Setup saved to %s"), path);
|
||||||
else
|
else
|
||||||
message (D_ERROR, _("Setup"), _("Unable to save setup to %s"), path);
|
message (D_ERROR, _("Setup"), _("Unable to save setup to %s"), path);
|
||||||
g_free (path);
|
|
||||||
|
vfs_path_free (vpath);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user