Fixed bug, causing saving extra new line at custom watchers file

pull/80/head
Ivan Yartsev 2 years ago
parent d522a92ab4
commit 556c30edf7

@ -2600,6 +2600,8 @@ main_window *setup_window(){
if (custom_watchers){
GtkTreeIter itar;
for (int i=0;i<size;i++){
if (custom_watchers[i][strlen(custom_watchers[i])-1]=='\n')
custom_watchers[i][strlen(custom_watchers[i])-1]='\0';
int cur_size=0;
config_str cur_watcher = yon_char_parse(custom_watchers[i],&cur_size,";");
if (cur_watcher){

Loading…
Cancel
Save