mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 23:25:15 +00:00
Remove some App::wnd() calls.
This commit is contained in:
@@ -545,7 +545,7 @@ std::optional<bool> IsDarkMode() {
|
||||
if (integration->checkVersion(3, 0, 0)) {
|
||||
const auto preferDarkTheme = integration->getBoolSetting(
|
||||
qsl("gtk-application-prefer-dark-theme"));
|
||||
|
||||
|
||||
if (!preferDarkTheme.has_value()) {
|
||||
return std::nullopt;
|
||||
} else if (*preferDarkTheme) {
|
||||
@@ -588,17 +588,6 @@ bool SkipTaskbarSupported() {
|
||||
|
||||
} // namespace Platform
|
||||
|
||||
QRect psDesktopRect() {
|
||||
static QRect _monitorRect;
|
||||
static auto _monitorLastGot = 0LL;
|
||||
auto tnow = crl::now();
|
||||
if (tnow > _monitorLastGot + 1000LL || tnow < _monitorLastGot) {
|
||||
_monitorLastGot = tnow;
|
||||
_monitorRect = QApplication::desktop()->availableGeometry(App::wnd());
|
||||
}
|
||||
return _monitorRect;
|
||||
}
|
||||
|
||||
void psWriteDump() {
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user