mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Don't focus main button on progress show.
This commit is contained in:
parent
d4cdd67128
commit
0d985b5745
1 changed files with 4 additions and 1 deletions
|
@ -33,6 +33,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include <QtCore/QJsonObject>
|
||||
#include <QtCore/QJsonArray>
|
||||
#include <QtGui/QDesktopServices>
|
||||
#include <QtWidgets/QApplication>
|
||||
|
||||
namespace Ui::BotWebView {
|
||||
namespace {
|
||||
|
@ -273,7 +274,9 @@ void Panel::Button::setupProgressGeometry() {
|
|||
|
||||
_progress->widget.show();
|
||||
_progress->widget.raise();
|
||||
if (_progress->shown) {
|
||||
if (_progress->shown
|
||||
&& Ui::AppInFocus()
|
||||
&& Ui::InFocusChain(_progress->widget.window())) {
|
||||
_progress->widget.setFocus();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue