mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix refreshing MainWindow::desktopRect.
This commit is contained in:
parent
a5abe3d813
commit
ae5c7b19f6
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ void MainWindow::updateWindowIcon() {
|
||||||
|
|
||||||
QRect MainWindow::desktopRect() const {
|
QRect MainWindow::desktopRect() const {
|
||||||
const auto now = crl::now();
|
const auto now = crl::now();
|
||||||
if (now >= _monitorLastGot && now <= _monitorLastGot + crl::time(1000)) {
|
if (!_monitorLastGot || now >= _monitorLastGot + crl::time(1000)) {
|
||||||
_monitorLastGot = now;
|
_monitorLastGot = now;
|
||||||
_monitorRect = computeDesktopRect();
|
_monitorRect = computeDesktopRect();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue