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:
parent
90cafd4176
commit
561f0168c0
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user