1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-26 18:03:42 +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.exec();
if (!dialog.changedEntries().isEmpty() || !dialog.installedEntries().isEmpty()) {
if (!dialog.changedEntries().isEmpty() && !dialog.installedEntries().isEmpty()) {
for (const auto &entry : dialog.installedEntries()) {
for (const auto &entryFile : entry.installedFiles()) {
qDebug() << "org.kde.latte ::: installing :: " << entryFile;
Latte::Layouts::Importer::LatteFileVersion version = Latte::Layouts::Importer::fileVersion(entryFile);
if (version == Latte::Layouts::Importer::LayoutVersion2) {

View File

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