Commit 1edfaa44 authored by Sam Thursfield's avatar Sam Thursfield

Fix enable-writeback option being ignored by tracker-miner-fs

The code was checking the value of the enable-monitors option, when it
should be looking at the enable-writeback option.
parent 8a452fa4
......@@ -81,11 +81,11 @@ enable_writeback_cb (GObject *object,
GParamSpec *pspec,
gpointer user_data)
{
if (enabled && !tracker_config_get_enable_monitors (gconfig)) {
if (enabled && !tracker_config_get_enable_writeback (gconfig)) {
shutdown_writeback ();
}
if (!enabled && tracker_config_get_enable_monitors (gconfig)) {
if (!enabled && tracker_config_get_enable_writeback (gconfig)) {
GError *error = NULL;
initialize_all (gminer_files, &error);
......@@ -104,7 +104,7 @@ tracker_writeback_init (TrackerMinerFiles *miner_files,
{
GError *internal_error = NULL;
if (tracker_config_get_enable_monitors (config)) {
if (tracker_config_get_enable_writeback (config)) {
initialize_all (miner_files, &internal_error);
}
......
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