mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
fix: make it compile
fix: restore Quit shortcut for use in custom shortcuts file
This commit is contained in:
@@ -787,10 +787,10 @@ void InnerWidget::paintEvent(QPaintEvent *e)
|
||||
auto clip = e->rect();
|
||||
auto context = _controller->preparePaintContext({
|
||||
.theme = _theme.get(),
|
||||
.visibleAreaTop = _visibleTop,
|
||||
.visibleAreaTopGlobal = mapToGlobal(QPoint(0, _visibleTop)).y(),
|
||||
.visibleAreaWidth = width(),
|
||||
.clip = clip,
|
||||
.visibleAreaPositionGlobal = mapToGlobal(QPoint(0, _visibleTop)),
|
||||
.visibleAreaTop = _visibleTop,
|
||||
.visibleAreaWidth = width(),
|
||||
});
|
||||
if (_items.empty() && _upLoaded && _downLoaded) {
|
||||
paintEmpty(p, context.st);
|
||||
|
||||
@@ -10,10 +10,6 @@
|
||||
|
||||
namespace base {
|
||||
|
||||
[[nodiscard]] inline bool IsShiftPressed() {
|
||||
return (QGuiApplication::keyboardModifiers() == Qt::ShiftModifier);
|
||||
}
|
||||
|
||||
[[nodiscard]] inline bool IsExtendedContextMenuModifierPressed() {
|
||||
return IsShiftPressed() || IsCtrlPressed();
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ const auto CommandByName = base::flat_map<QString, Command>{
|
||||
{ u"close_telegram"_q , Command::Close },
|
||||
{ u"lock_telegram"_q , Command::Lock },
|
||||
{ u"minimize_telegram"_q , Command::Minimize },
|
||||
// { u"quit_telegram"_q , Command::Quit },
|
||||
{ u"quit_telegram"_q , Command::Quit },
|
||||
|
||||
{ u"media_play"_q , Command::MediaPlay },
|
||||
{ u"media_pause"_q , Command::MediaPause },
|
||||
@@ -112,7 +112,7 @@ const auto CommandNames = base::flat_map<Command, QString>{
|
||||
{ Command::Close , u"close_telegram"_q },
|
||||
{ Command::Lock , u"lock_telegram"_q },
|
||||
{ Command::Minimize , u"minimize_telegram"_q },
|
||||
// { Command::Quit , u"quit_telegram"_q },
|
||||
{ Command::Quit , u"quit_telegram"_q },
|
||||
|
||||
{ Command::MediaPlay , u"media_play"_q },
|
||||
{ Command::MediaPause , u"media_pause"_q },
|
||||
|
||||
+1
-1
Submodule Telegram/lib_ui updated: d79a85b117...6fff803db5
Reference in New Issue
Block a user