mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 14:13:26 +00:00
session-helper: remove un-needed file monitor actions on CREATED
CHANGES_DONE always fires after CREATED. Closes: #1190 Approved by: alexlarsson
This commit is contained in:
parent
cb57c599dd
commit
b31773b097
@ -427,9 +427,10 @@ file_changed (GFileMonitor *monitor,
|
||||
GFileMonitorEvent event_type,
|
||||
char *source)
|
||||
{
|
||||
if (event_type == G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT ||
|
||||
event_type == G_FILE_MONITOR_EVENT_CREATED)
|
||||
copy_file (source, monitor_dir);
|
||||
if (event_type != G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT)
|
||||
return;
|
||||
|
||||
copy_file (source, monitor_dir);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user