[Improvement] Allow to change pinned messages shortcuts
This commit is contained in:
parent
4db04dcebd
commit
e0acc2cfac
1 changed files with 13 additions and 0 deletions
|
|
@ -113,6 +113,12 @@ const auto CommandByName = base::flat_map<QString, Command>{
|
|||
{ qsl("jump_to_date") , Command::JumpToDate },
|
||||
{ qsl("reload_lang") , Command::ReloadLang },
|
||||
{ qsl("restart_app") , Command::Restart },
|
||||
|
||||
{ qsl("pinned_1") , Command::ChatPinned1 },
|
||||
{ qsl("pinned_2") , Command::ChatPinned2 },
|
||||
{ qsl("pinned_3") , Command::ChatPinned3 },
|
||||
{ qsl("pinned_4") , Command::ChatPinned4 },
|
||||
{ qsl("pinned_5") , Command::ChatPinned5 },
|
||||
};
|
||||
|
||||
const auto CommandNames = base::flat_map<Command, QString>{
|
||||
|
|
@ -157,6 +163,13 @@ const auto CommandNames = base::flat_map<Command, QString>{
|
|||
{ Command::JumpToDate , u"jump_to_date"_q },
|
||||
{ Command::ReloadLang , u"reload_lang"_q },
|
||||
{ Command::Restart , u"restart_app"_q },
|
||||
|
||||
|
||||
{ Command::ChatPinned1 , u"pinned_1"_q },
|
||||
{ Command::ChatPinned2 , u"pinned_2"_q },
|
||||
{ Command::ChatPinned3 , u"pinned_3"_q },
|
||||
{ Command::ChatPinned4 , u"pinned_4"_q },
|
||||
{ Command::ChatPinned5 , u"pinned_5"_q },
|
||||
};
|
||||
|
||||
[[maybe_unused]] constexpr auto kNoValue = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue