Start file monitor explicitly

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2018-01-29 00:04:43 +01:00
parent 8a003fb4cd
commit 93336db1b5
2 changed files with 4 additions and 5 deletions

View file

@ -157,10 +157,6 @@ zathura_filemonitor_new(const char* file_path,
return NULL; return NULL;
} }
girara_debug("starting file monitor"); return ZATHURA_FILEMONITOR(ret);
ZathuraFileMonitor* file_monitor = ZATHURA_FILEMONITOR(ret);
ZATHURA_FILEMONITOR_GET_CLASS(file_monitor)->start(file_monitor);
return file_monitor;
} }

View file

@ -898,6 +898,9 @@ document_open(zathura_t* zathura, const char* path, const char* uri, const char*
} }
g_signal_connect(G_OBJECT(zathura->file_monitor.monitor), "reload-file", g_signal_connect(G_OBJECT(zathura->file_monitor.monitor), "reload-file",
G_CALLBACK(cb_file_monitor), zathura->ui.session); G_CALLBACK(cb_file_monitor), zathura->ui.session);
girara_debug("starting file monitor");
zathura_filemonitor_start(zathura->file_monitor.monitor);
} }
if (password != NULL) { if (password != NULL) {