mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-23 14:28:51 -04:00
UI: Update hotkey label on quick transition rename
This commit is contained in:
1 parent
4c73e5f6c5
commit
54ab27bda6
2 files changed
+24
-3
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user