UI: Update hotkey label on quick transition rename
This commit is contained in:
parent
4c73e5f6c5
commit
54ab27bda6
2 changed files with 24 additions and 3 deletions
|
|
@ -26,6 +26,8 @@
|
|||
#include "menu-button.hpp"
|
||||
#include "qt-wrappers.hpp"
|
||||
|
||||
#include "obs-hotkey.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
Q_DECLARE_METATYPE(OBSScene);
|
||||
|
|
@ -98,6 +100,18 @@ void OBSBasic::AddQuickTransitionHotkey(QuickTransition *qt)
|
|||
(void*)(uintptr_t)qt->id);
|
||||
}
|
||||
|
||||
void QuickTransition::SourceRenamed(void *param, calldata_t *data)
|
||||
{
|
||||
QuickTransition *qt = reinterpret_cast<QuickTransition*>(param);
|
||||
|
||||
QString hotkeyName = QTStr("QuickTransitions.HotkeyName")
|
||||
.arg(MakeQuickTransitionText(qt));
|
||||
|
||||
obs_hotkey_set_description(qt->hotkey, QT_TO_UTF8(hotkeyName));
|
||||
|
||||
UNUSED_PARAMETER(data);
|
||||
}
|
||||
|
||||
void OBSBasic::TriggerQuickTransition(int id)
|
||||
{
|
||||
QuickTransition *qt = GetQuickTransition(id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue