MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / UpdateDescription

Method UpdateDescription

plugins/base/utils/hotkey-helpers.cpp:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86bool Hotkey::UpdateDescription(const std::string &descritpion)
87{
88 if (!DescriptionAvailable(descritpion)) {
89 return false;
90 }
91 _description = descritpion;
92 obs_hotkey_set_name(_hotkeyID,
93 GetNameFromDescription(descritpion).c_str());
94 obs_hotkey_set_description(_hotkeyID, descritpion.c_str());
95 return true;
96}
97
98bool Hotkey::DescriptionAvailable(const std::string &descritpion)
99{

Callers 1

NameChangedMethod · 0.80

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected