diff --git a/core/modules/shortcut/shortcut.install b/core/modules/shortcut/shortcut.install
index 73986b8..57166a4 100644
--- a/core/modules/shortcut/shortcut.install
+++ b/core/modules/shortcut/shortcut.install
@@ -52,7 +52,7 @@ function shortcut_schema() {
 function shortcut_install() {
   // Theme settings are not configuration entities and cannot depend on modules
   // so to set a module-specific setting, we need to set it with logic.
-  if (\Drupal::service('theme_handler')->themeExists('seven')) {
+  if (!\Drupal::service('config.installer')->isSyncing() && \Drupal::service('theme_handler')->themeExists('seven')) {
     \Drupal::configFactory()->getEditable('seven.settings')->set('third_party_settings.shortcut.module_link', TRUE)->save(TRUE);
   }
 }
