mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 06:07:45 +00:00
Don't focus main button on progress show.
This commit is contained in:
parent
d4cdd67128
commit
0d985b5745
@ -33,6 +33,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
#include <QtCore/QJsonObject>
|
#include <QtCore/QJsonObject>
|
||||||
#include <QtCore/QJsonArray>
|
#include <QtCore/QJsonArray>
|
||||||
#include <QtGui/QDesktopServices>
|
#include <QtGui/QDesktopServices>
|
||||||
|
#include <QtWidgets/QApplication>
|
||||||
|
|
||||||
namespace Ui::BotWebView {
|
namespace Ui::BotWebView {
|
||||||
namespace {
|
namespace {
|
||||||
@ -273,7 +274,9 @@ void Panel::Button::setupProgressGeometry() {
|
|||||||
|
|
||||||
_progress->widget.show();
|
_progress->widget.show();
|
||||||
_progress->widget.raise();
|
_progress->widget.raise();
|
||||||
if (_progress->shown) {
|
if (_progress->shown
|
||||||
|
&& Ui::AppInFocus()
|
||||||
|
&& Ui::InFocusChain(_progress->widget.window())) {
|
||||||
_progress->widget.setFocus();
|
_progress->widget.setFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user