mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-30 10:31:21 -05:00
dir: Avoid unnecessary _flatpak_dir_reload_config()
There's no point in reloading the config when it didn't change.
This commit is contained in:
committed by
Alexander Larsson
parent
5836de30e3
commit
5d382f3211
@@ -12764,7 +12764,7 @@ flatpak_dir_create_origin_remote (FlatpakDir *self,
|
||||
gpg_data, cancellable, error))
|
||||
return NULL;
|
||||
|
||||
if (!_flatpak_dir_reload_config (self, cancellable, error))
|
||||
if (new_config && !_flatpak_dir_reload_config (self, cancellable, error))
|
||||
return FALSE;
|
||||
|
||||
if (changed_config)
|
||||
|
||||
Reference in New Issue
Block a user