mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 12:26:01 +01:00
Start file monitor explicitly
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
8a003fb4cd
commit
93336db1b5
2 changed files with 4 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue