Skip to content

Commit

Permalink
WEffectChainPresetButton: add 'Rename Preset' action
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Aug 30, 2023
1 parent 366f6cc commit 46f2f91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/widget/weffectchainpresetbutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ void WEffectChainPresetButton::populateMenu() {
m_pChainPresetManager->updatePreset(m_pChain);
});
}
if (!presetIsReadOnly && !m_pChain->presetName().isEmpty()) {
m_pMenu->addAction(tr("Rename Preset"), this, [this]() {
m_pChainPresetManager->renamePreset(m_pChain->presetName());
});
}
m_pMenu->addAction(tr("Save As New Preset..."), this, [this]() {
m_pChainPresetManager->savePresetAndReload(m_pChain);
});
Expand Down

0 comments on commit 46f2f91

Please sign in to comment.