Skip to content

Commit

Permalink
#662 rename second key details
Browse files Browse the repository at this point in the history
  • Loading branch information
oben01 committed Sep 16, 2020
1 parent 7a0908b commit 8f2b358
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sources/plugins/StreamDeck/StreamDeck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,16 +313,16 @@ void CStreamDeck::doWork(boost::shared_ptr<yApi::IYPluginApi> api)
"mainSection.content.keyElement#" + std::to_string(keyCounter) + ".content.content.checkbox");
if (isSecondKeyChecked)
{
auto iconNameIndex = config->get<int>(
auto secondKeyIconNameIndex = config->get<int>(
"mainSection.content.keyElement#" + std::to_string(keyCounter) + ".content.content.content.iconWhenKeyIsPressed");

auto iconPath = CDefaultIconSelector::getIconPath(pluginPath, iconNameIndex);
auto customText = config->get<std::string>(
auto secondKeyIconPath = CDefaultIconSelector::getIconPath(pluginPath, secondKeyIconNameIndex);
auto secondKeyCustomText = config->get<std::string>(
"mainSection.content.keyElement#" + std::to_string(keyCounter) + ".content.content.content.customTextWhenKeyIsPressed");

CFileManager fileManager(iconPath);
CFileManager fileManager(secondKeyIconPath);
fileManager.read();
auto img = fileManager.getData();
auto secondKeyImg = fileManager.getData();
fileManager.close();
}

Expand Down

0 comments on commit 8f2b358

Please sign in to comment.