mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +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 {
|
||||
const auto now = crl::now();
|
||||
if (now >= _monitorLastGot && now <= _monitorLastGot + crl::time(1000)) {
|
||||
if (!_monitorLastGot || now >= _monitorLastGot + crl::time(1000)) {
|
||||
_monitorLastGot = now;
|
||||
_monitorRect = computeDesktopRect();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue