Commit e348d994 authored by camilo higuita's avatar camilo higuita

return of cloud view and add download quick action

parent e6c37e67
This diff is collapsed.
......@@ -38,7 +38,8 @@ Cloud::Cloud(QObject *parent) : MauiList (parent),
void Cloud::componentComplete()
{
this->provider->setCredentials(FMH::toModel(MauiAccounts::instance()->getCurrentAccount()));
this->setList();
}
void Cloud::setSortBy(const Cloud::SORTBY &sort)
......
#include "player.h"
#include "../../utils/bae.h"
//#ifdef STATIC_MAUIKIT
//#include "mauiaccounts.h"
//#else
//#include <mauiaccounts.h>
//#endif
#ifdef STATIC_MAUIKIT
#include "mauiaccounts.h"
#else
#include <mauiaccounts.h>
#endif
Player::Player(QObject *parent) : QObject(parent),
player(new QMediaPlayer(this)),
......@@ -27,8 +27,8 @@ inline QNetworkRequest getOcsRequest(const QNetworkRequest& request)
rawHeaders.insert(headerKey, request.rawHeader(headerKey));
}
// const auto account = FMH::toModel(MauiAccounts::instance()->getCurrentAccount());
const auto account = FMH::MODEL();
const auto account = FMH::toModel(MauiAccounts::instance()->getCurrentAccount());
// const auto account = FMH::MODEL();
const QString concatenated = QString("%1:%2").arg(account[FMH::MODEL_KEY::USER], account[FMH::MODEL_KEY::PASSWORD]);
const QByteArray data = concatenated.toLocal8Bit().toBase64();
......
......@@ -28,7 +28,7 @@ Maui.Page
anchors.fill: parent
holder.visible: count === 0
topMargin: Maui.Style.space.medium
listView.headerPositioning: ListView.PullBackHeader
listView.headerPositioning: Kirigami.Settings.isMobile ? ListView.PullBackHeader : ListView.OverlayHeader
listView.footerPositioning: ListView.OverlayFooter
Kirigami.Theme.colorSet: Kirigami.Theme.Window
Kirigami.Theme.inherit: false
......
......@@ -11,12 +11,12 @@ import "../../db/Queries.js" as Q
Maui.Dialog
{
title: "Add "+ tracks.length +" tracks to..."
property var tracks : []
maxHeight: 400 * Maui.Style.unit
page.padding: Maui.Style.space.medium
acceptButton.text: qsTr("Save")
rejectButton.text: qsTr("Cancel")
ColumnLayout
{
anchors.fill: parent
......
......@@ -165,6 +165,7 @@ Maui.Page
holder.emoji: "qrc:/assets/dialog-information.svg"
holder.title : qsTr("Opps!")
holder.body: qsTr("You don't have an account set up.\nYou can set up your account now by clicking here or under the Accounts options in the main menu")
listView.spacing: Maui.Style.space.small * (Kirigami.Settings.isMobile ? 1.4 : 1.2)
Connections
{
......@@ -238,6 +239,13 @@ Maui.Page
width: parent.width
number : false
coverArt : false
ToolButton
{
icon.name: "document-download"
Layout.fillHeight: true
}
onClicked:
{
_listView.currentIndex = index
......
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