Clear save_id when removing idle_save_application_usage()
When we remove the timeout for saving application usage when application usage is disabled, set the save_id member variable to 0. http://bugzilla.gnome.org/show_bug.cgi?id=589676
This commit is contained in:
parent
6f94b8cffe
commit
d116f707c5
@ -1657,7 +1657,10 @@ update_enable_monitoring (ShellAppMonitor *monitor)
|
|||||||
{
|
{
|
||||||
monitor->watched_window = NULL;
|
monitor->watched_window = NULL;
|
||||||
if (monitor->save_id)
|
if (monitor->save_id)
|
||||||
g_source_remove (monitor->save_id);
|
{
|
||||||
|
g_source_remove (monitor->save_id);
|
||||||
|
monitor->save_id = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
monitor->enable_monitoring = enable;
|
monitor->enable_monitoring = enable;
|
||||||
|
Loading…
Reference in New Issue
Block a user