From d077cfd8e673d396b3d026923511c813ce19ab11 Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Wed, 22 Mar 2023 20:44:59 +0100 Subject: [PATCH] fix userscript ui --- .../00111-ADDTO-Experimental-user-scripts-support.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/patches/00111-ADDTO-Experimental-user-scripts-support.patch b/build/patches/00111-ADDTO-Experimental-user-scripts-support.patch index e4471464..67ee4fbd 100644 --- a/build/patches/00111-ADDTO-Experimental-user-scripts-support.patch +++ b/build/patches/00111-ADDTO-Experimental-user-scripts-support.patch @@ -175,7 +175,7 @@ diff --git a/components/user_scripts/browser/user_script_prefs.cc b/components/u + std::unique_ptr<::prefs::DictionaryValueUpdate> update_dict = update.Get(); for (auto key : all_scripts_to_remove) { - update_dict->RemoveKey(key); -+ update_dict->RemoveWithoutPathExpansion(key); ++ update_dict->RemoveWithoutPathExpansion(key, nullptr); } return; @@ -188,7 +188,7 @@ diff --git a/components/user_scripts/browser/user_script_prefs.cc b/components/u - update_dict->RemoveKey(script_id); + ::prefs::ScopedDictionaryPrefUpdate update(prefs_, kUserScriptsList); + std::unique_ptr<::prefs::DictionaryValueUpdate> const update_dict = update.Get(); -+ update_dict->RemoveWithoutPathExpansion(script_id); ++ update_dict->RemoveWithoutPathExpansion(script_id, nullptr); } void UserScriptsPrefs::SetScriptEnabled(const std::string& script_id, bool is_enabled) {