Fix build for Windows.

This commit is contained in:
John Preston 2020-01-18 17:39:00 +03:00
parent 465a42a825
commit bdfa080701
3 changed files with 3 additions and 3 deletions

View File

@ -730,7 +730,7 @@ void SetupSendMenuAndShortcuts(
return true;
}))
||
(request->check(Command::SendMessage) && request->handle([=] {
(request->check(Command::JustSendMessage) && request->handle([=] {
const auto post = [&](QEvent::Type type) {
QApplication::postEvent(
button,

View File

@ -78,7 +78,7 @@ const auto CommandByName = base::flat_map<QString, Command>{
{ qsl("show_archive") , Command::ShowArchive },
// Shortcuts that have no default values.
{ qsl("message") , Command::SendMessage },
{ qsl("message") , Command::JustSendMessage },
{ qsl("message_silently") , Command::SendSilentMessage },
{ qsl("message_scheduled"), Command::ScheduleMessage },
//

View File

@ -37,7 +37,7 @@ enum class Command {
ShowArchive,
SendMessage,
JustSendMessage,
SendSilentMessage,
ScheduleMessage,