mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 13:47:47 +00:00
Fix refreshing MainWindow::desktopRect.
This commit is contained in:
parent
a5abe3d813
commit
ae5c7b19f6
@ -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…
x
Reference in New Issue
Block a user