MCPcopy Create free account
hub / github.com/KDE/kdevelop / runtimeChanged

Method runtimeChanged

plugins/flatpak/flatpakplugin.cpp:91–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89FlatpakPlugin::~FlatpakPlugin() = default;
90
91void FlatpakPlugin::runtimeChanged(KDevelop::IRuntime* newRuntime)
92{
93 const bool isFlatpak = qobject_cast<FlatpakRuntime*>(newRuntime);
94
95 const auto& actions = actionCollection()->actions();
96 for (auto action: actions) {
97 action->setEnabled(isFlatpak);
98 }
99}
100
101void FlatpakPlugin::rebuildCurrent()
102{

Callers

nothing calls this directly

Calls 2

actionsMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected