mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
fix: make it compile
fix: restore Quit shortcut for use in custom shortcuts file
This commit is contained in:
parent
abf17407ea
commit
fe64dfeb1f
4 changed files with 6 additions and 10 deletions
|
@ -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 @@
|
|||
Subproject commit d79a85b117f32d97670fe37f3aec6b1e4faa658c
|
||||
Subproject commit 6fff803db5e301f89b3a6a8af8ec38f4dcf5d97c
|
Loading…
Add table
Reference in a new issue