[Improvement] Allow to change pinned messages shortcuts

This commit is contained in:
Eric Kotato 2022-09-11 03:37:33 +03:00
parent 76810461fe
commit df1218964c

View file

@ -102,6 +102,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>{
@ -146,6 +152,12 @@ const auto CommandNames = base::flat_map<Command, QString>{
{ Command::JumpToDate , qsl("jump_to_date") },
{ Command::ReloadLang , qsl("reload_lang") },
{ Command::Restart , qsl("restart_app") },
{ Command::ChatPinned1 , qsl("pinned_1") },
{ Command::ChatPinned2 , qsl("pinned_2") },
{ Command::ChatPinned3 , qsl("pinned_3") },
{ Command::ChatPinned4 , qsl("pinned_4") },
{ Command::ChatPinned5 , qsl("pinned_5") },
};
class Manager {