mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 16:15:13 +00:00
Fix Open With menu position in macOS.
This commit is contained in:
@@ -403,7 +403,7 @@ bool UnsafeShowOpenWithDropdown(const QString &filepath, QPoint menuPosition) {
|
|||||||
if (!screen) {
|
if (!screen) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const auto r = screen->availableGeometry();
|
const auto r = screen->geometry();
|
||||||
auto x = menuPosition.x();
|
auto x = menuPosition.x();
|
||||||
auto y = r.y() + r.height() - menuPosition.y();
|
auto y = r.y() + r.height() - menuPosition.y();
|
||||||
return !![menu popupAtX:x andY:y];
|
return !![menu popupAtX:x andY:y];
|
||||||
|
Reference in New Issue
Block a user