Skip to content

Instantly share code, notes, and snippets.

@jsm222
Created November 18, 2021 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsm222/2ca010b302109d4800eb551319b86133 to your computer and use it in GitHub Desktop.
Save jsm222/2ca010b302109d4800eb551319b86133 to your computer and use it in GitHub Desktop.
GTKMenu
diff --git a/src/appmenu/appmenumodel.cpp b/src/appmenu/appmenumodel.cpp
index 1ea190f..7aca717 100644
--- a/src/appmenu/appmenumodel.cpp
+++ b/src/appmenu/appmenumodel.cpp
@@ -544,6 +544,7 @@ void AppMenuModel::updateApplicationMenu(const QString &serviceName, const QStri
const QModelIndex modelIdx = index(actionIdx, 0);
emit dataChanged(modelIdx, modelIdx);
}
+ emit modelNeedsUpdate();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment