Commit 93336db1 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Start file monitor explicitly

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 8a003fb4
......@@ -157,10 +157,6 @@ zathura_filemonitor_new(const char* file_path,
return NULL;
}
girara_debug("starting file monitor");
ZathuraFileMonitor* file_monitor = ZATHURA_FILEMONITOR(ret);
ZATHURA_FILEMONITOR_GET_CLASS(file_monitor)->start(file_monitor);
return file_monitor;
return ZATHURA_FILEMONITOR(ret);
}
......@@ -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_CALLBACK(cb_file_monitor), zathura->ui.session);
girara_debug("starting file monitor");
zathura_filemonitor_start(zathura->file_monitor.monitor);
}
if (password != NULL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment