mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-21 20:19:32 +08:00
Make identifier unique and call the correct one.
Wouldn't start for me without (from source, on Windows). part of CURA-9522
This commit is contained in:
parent
634288a37c
commit
d351458b10
@ -30,7 +30,7 @@ Popup
|
|||||||
// needed for the `mapToItem` function to work; apparently a Popup is not an Item
|
// needed for the `mapToItem` function to work; apparently a Popup is not an Item
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: materialBrandSubMenu
|
id: materialBrandSubMenuItem
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ Popup
|
|||||||
materialBrandSubMenu.width = implicitWidth;
|
materialBrandSubMenu.width = implicitWidth;
|
||||||
materialBrandSubMenu.height = implicitHeight;
|
materialBrandSubMenu.height = implicitHeight;
|
||||||
|
|
||||||
const globalPosition = materialBrandSubMenu.mapToItem(null, 0, 0);
|
const globalPosition = materialBrandSubMenuItem.mapToItem(null, 0, 0);
|
||||||
|
|
||||||
if (globalPosition.y > mainWindow.height - materialBrandSubMenu.height)
|
if (globalPosition.y > mainWindow.height - materialBrandSubMenu.height)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user