mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01:00
GKeyFileSettingsBackend: ignore file deletions
Ignore the keyfile being deleted (ie: by the user) instead of reporting it to the application as all values being reverted back to their originals. https://bugzilla.gnome.org/show_bug.cgi?id=637956
This commit is contained in:
parent
ef57996f44
commit
1fba61981a
@ -550,7 +550,9 @@ file_changed (GFileMonitor *monitor,
|
|||||||
{
|
{
|
||||||
GKeyfileSettingsBackend *kfsb = user_data;
|
GKeyfileSettingsBackend *kfsb = user_data;
|
||||||
|
|
||||||
g_keyfile_settings_backend_keyfile_reload (kfsb);
|
/* Ignore file deletions, let the GKeyFile content remain in tact. */
|
||||||
|
if (event_type != G_FILE_MONITOR_EVENT_DELETED)
|
||||||
|
g_keyfile_settings_backend_keyfile_reload (kfsb);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user