Commit df458e9e authored by Thomas Surrel's avatar Thomas Surrel

[Folder View] In list view mode, fix home button disappearing every other subfolder entered

Test Plan:
Add a Folder View in a panel, open it in "list view" mode.
Navigate through several subfolders: the 'home' button that appears in the top left corner of the applet should not disappear every even number of subfolder you open.

Reviewers: #plasma, #vdg, hein

Reviewed By: #plasma, hein

Subscribers: abetts, hein, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D15823
parent b2322abc
......@@ -308,7 +308,7 @@ FocusScope {
onUrlChanged: {
if (!label.homeButton && folderView.url != plasmoid.configuration.url) {
label.homeButton = homeButtonComponent.createObject(label);
} else if (label.homeButton) {
} else if (label.homeButton && folderView.url == plasmoid.configuration.url) {
label.homeButton.destroy();
}
}
......
Markdown is supported
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