From 2647c7e2bf268c11fd1ebe9e050d29d44abcb4e3 Mon Sep 17 00:00:00 2001 From: wackyideas Date: Fri, 9 Aug 2024 19:05:38 +0200 Subject: [PATCH] Fixed SevenStart floating icon placement issue --- .../contents/ui/CompactRepresentation.qml | 5 ----- .../contents/ui/MenuRepresentation.qml | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/plasma/plasmoids/io.gitgud.wackyideas.SevenStart/contents/ui/CompactRepresentation.qml b/plasma/plasmoids/io.gitgud.wackyideas.SevenStart/contents/ui/CompactRepresentation.qml index bcb4bc6..06f5a05 100755 --- a/plasma/plasmoids/io.gitgud.wackyideas.SevenStart/contents/ui/CompactRepresentation.qml +++ b/plasma/plasmoids/io.gitgud.wackyideas.SevenStart/contents/ui/CompactRepresentation.qml @@ -92,7 +92,6 @@ Item { dashWindow.visible = !dashWindow.visible; dashWindow.showingAllPrograms = false; Plasmoid.setActiveWin(dashWindow); - console.log(floatingOrbPanel.buttonIcon.implicitHeight); dashWindow.m_searchField.focus = true; orb.raise(); } @@ -124,10 +123,6 @@ Item { root.Layout.minimumHeight = orb.height; root.Layout.maximumHeight = orb.height; } - - // This has to be done, or else the orb won't be positioned correctly. ?????????? - /*orb.y += 5; - orb.y -= 5; // ??????????????????????????????????????*/ } //kicker.status: PlasmaCore.Types.PassiveStatus diff --git a/plasma/plasmoids/io.gitgud.wackyideas.SevenStart/contents/ui/MenuRepresentation.qml b/plasma/plasmoids/io.gitgud.wackyideas.SevenStart/contents/ui/MenuRepresentation.qml index 8a76c56..2ea06a8 100755 --- a/plasma/plasmoids/io.gitgud.wackyideas.SevenStart/contents/ui/MenuRepresentation.qml +++ b/plasma/plasmoids/io.gitgud.wackyideas.SevenStart/contents/ui/MenuRepresentation.qml @@ -102,7 +102,7 @@ PlasmaCore.Dialog { } else { requestActivate(); searchField.forceActiveFocus(); - if(!firstTimePopup) setFloatingAvatarPosition(); + setFloatingAvatarPosition(); } resetRecents(); // Resets the recents model to prevent errors and crashes. } @@ -117,6 +117,7 @@ PlasmaCore.Dialog { var pos = popupPosition(width, height); x = pos.x; y = pos.y; + setFloatingAvatarPosition(); } onSearchingChanged: {