mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Don't activate main window in case of visible call window.
Fixes #27017.
This commit is contained in:
@@ -258,12 +258,15 @@ not_null<GroupCall*> Panel::call() const {
|
||||
return _call;
|
||||
}
|
||||
|
||||
bool Panel::isActive() const {
|
||||
return window()->isActiveWindow()
|
||||
&& window()->isVisible()
|
||||
bool Panel::isVisible() const {
|
||||
return window()->isVisible()
|
||||
&& !(window()->windowState() & Qt::WindowMinimized);
|
||||
}
|
||||
|
||||
bool Panel::isActive() const {
|
||||
return window()->isActiveWindow() && isVisible();
|
||||
}
|
||||
|
||||
base::weak_ptr<Ui::Toast::Instance> Panel::showToast(
|
||||
const QString &text,
|
||||
crl::time duration) {
|
||||
|
Reference in New Issue
Block a user