1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-27 06:03:51 +03:00

fixes for abilities and KHNS

This commit is contained in:
Michail Vourlakos 2021-02-05 17:06:12 +02:00
parent 90cafd4176
commit 561f0168c0
2 changed files with 6 additions and 5 deletions

View File

@ -439,9 +439,10 @@ void TabLayouts::downloadLayout()
dialog.resize(m_parentDialog->downloadWindowSize()); dialog.resize(m_parentDialog->downloadWindowSize());
dialog.exec(); dialog.exec();
if (!dialog.changedEntries().isEmpty() || !dialog.installedEntries().isEmpty()) { if (!dialog.changedEntries().isEmpty() && !dialog.installedEntries().isEmpty()) {
for (const auto &entry : dialog.installedEntries()) { for (const auto &entry : dialog.installedEntries()) {
for (const auto &entryFile : entry.installedFiles()) { for (const auto &entryFile : entry.installedFiles()) {
qDebug() << "org.kde.latte ::: installing :: " << entryFile;
Latte::Layouts::Importer::LatteFileVersion version = Latte::Layouts::Importer::fileVersion(entryFile); Latte::Layouts::Importer::LatteFileVersion version = Latte::Layouts::Importer::fileVersion(entryFile);
if (version == Latte::Layouts::Importer::LayoutVersion2) { if (version == Latte::Layouts::Importer::LayoutVersion2) {

View File

@ -111,10 +111,10 @@ Item{
readonly property bool parabolicAreaContainsMouse: parabolicEventsAreaLoader.active && parabolicEventsAreaLoader.item.containsMouse readonly property bool parabolicAreaContainsMouse: parabolicEventsAreaLoader.active && parabolicEventsAreaLoader.item.containsMouse
readonly property int location: { readonly property int location: {
if (abilityItem.location === PlasmaCore.Types.LeftEdge if (plasmoid.location === PlasmaCore.Types.LeftEdge
|| abilityItem.location === PlasmaCore.Types.RightEdge || plasmoid.location === PlasmaCore.Types.RightEdge
|| abilityItem.location === PlasmaCore.Types.TopEdge) { || plasmoid.location === PlasmaCore.Types.TopEdge) {
return abilityItem.location; return plasmoid.location;
} }
return PlasmaCore.Types.BottomEdge; return PlasmaCore.Types.BottomEdge;