mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Merge pull request #1749 from profanity-im/minor-improvements
Minor improvements
This commit is contained in:
commit
68e9de02df
@ -180,13 +180,10 @@ log_init(log_level_t filter, char* log_file)
|
|||||||
user_provided_log = TRUE;
|
user_provided_log = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
gchar* lf = files_get_log_file(log_file);
|
mainlogfile = files_get_log_file(log_file);
|
||||||
|
|
||||||
logp = fopen(lf, "a");
|
logp = fopen(mainlogfile, "a");
|
||||||
g_chmod(lf, S_IRUSR | S_IWUSR);
|
g_chmod(mainlogfile, S_IRUSR | S_IWUSR);
|
||||||
mainlogfile = g_strdup(lf);
|
|
||||||
|
|
||||||
g_free(lf);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const char*
|
const char*
|
||||||
|
@ -203,6 +203,11 @@ _init(char* log_level, char* config_file, char* log_file, char* theme_name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ui_init();
|
ui_init();
|
||||||
|
if (prof_log_level == PROF_LEVEL_DEBUG) {
|
||||||
|
ProfWin* console = wins_get_console();
|
||||||
|
win_println(console, THEME_DEFAULT, "-", "Debug mode enabled! Logging to: ");
|
||||||
|
win_println(console, THEME_DEFAULT, "-", get_log_file_location());
|
||||||
|
}
|
||||||
session_init();
|
session_init();
|
||||||
cmd_init();
|
cmd_init();
|
||||||
log_info("Initialising contact list");
|
log_info("Initialising contact list");
|
||||||
|
@ -190,8 +190,8 @@ http_file_get(void* userdata)
|
|||||||
} else {
|
} else {
|
||||||
if (!download->cancel) {
|
if (!download->cancel) {
|
||||||
http_print_transfer_update(download->window, download->url,
|
http_print_transfer_update(download->window, download->url,
|
||||||
"Downloading '%s': done",
|
"Downloading '%s': done\nSaved to '%s'",
|
||||||
download->url);
|
download->url, download->filename);
|
||||||
win_mark_received(download->window, download->url);
|
win_mark_received(download->window, download->url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user