Verified Commit 7fe89659 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

containments: add an application icon to the dragged location

x === 0 && y === 0: when adding a new application icon applet from
Kickoff context menu.

BUG: 454581
FIXED-IN: 5.25
parent 6e597f16
Pipeline #185695 passed with stage
in 3 minutes and 8 seconds
......@@ -36,7 +36,7 @@ function addApplet(applet, x, y) {
// of a specific type, and the containment caring about the applet type. In a better
// system the containment would be informed of requested launchers, and determine by
// itself what it wants to do with that information.
if (applet.pluginName === "org.kde.plasma.icon" &&
if (applet.pluginName === "org.kde.plasma.icon" && x === 0 && y === 0 &&
(middle = currentLayout.childAt(root.width / 2, root.height / 2))) {
appletsModel.insert(middle.index, new_element);
// Fall through to determining an appropriate insert position.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment