Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Maui
Vvave
Commits
151658d7
Commit
151658d7
authored
Oct 19, 2019
by
camilo higuita
Browse files
only load some dialogs when needed
parent
d3814702
Changes
5
Hide whitespace changes
Inline
Side-by-side
main.qml
View file @
151658d7
...
...
@@ -47,6 +47,7 @@ Maui.ApplicationWindow
property
alias
mainPlaylist
:
mainPlaylist
property
alias
selectionBar
:
_selectionBar
property
alias
progressBar
:
progressBar
property
alias
dialog
:
_dialogLoader
.
item
Maui.App.iconName
:
"
qrc:/assets/vvave.svg
"
Maui.App.description
:
qsTr
(
"
VVAVE will handle your whole music collection by retreaving semantic information from the web. Just relax, enjoy and discover your new music
"
)
...
...
@@ -345,6 +346,11 @@ visible: !mainlistEmpty
searchView
.
searchInput
.
forceActiveFocus
()
}
Loader
{
id
:
_dialogLoader
}
InfoView
{
id
:
infoView
...
...
@@ -352,14 +358,17 @@ visible: !mainlistEmpty
maxHeight
:
parent
.
height
*
0.9
}
Maui.ShareDialog
Component
{
id
:
shareDialog
id
:
_shareDialogComponent
Maui.ShareDialog
{}
}
Maui.FileDialog
Component
{
id
:
fmDialog
id
:
_fmDialogComponent
Maui.FileDialog
{
}
}
SourcesDialog
...
...
@@ -433,9 +442,10 @@ visible: !mainlistEmpty
icon.name
:
"
folder-add
"
onTriggered
:
{
fmDialog
.
settings
.
onlyDirs
=
false
fmDialog
.
settings
.
filterType
=
Maui
.
FMList
.
AUDIO
fmDialog
.
show
(
function
(
paths
)
_dialogLoader
.
sourceComponent
=
_fmDialogComponent
root
.
dialog
.
settings
.
onlyDirs
=
false
root
.
dialog
.
settings
.
filterType
=
Maui
.
FMList
.
AUDIO
root
.
dialog
.
show
(
function
(
paths
)
{
vvave
.
openUrls
(
paths
)
})
...
...
view_models/BabeTable/BabeTable.qml
View file @
151658d7
...
...
@@ -217,7 +217,6 @@ BabeList
onTriggered
:
goToAlbum
()
}
onFavClicked
:
{
list
.
fav
(
listView
.
currentIndex
,
!
(
list
.
get
(
listView
.
currentIndex
).
fav
==
"
1
"
))
...
...
@@ -262,8 +261,15 @@ BabeList
onShareClicked
:
{
const
url
=
list
.
get
(
listView
.
currentIndex
).
url
isAndroid
?
Maui
.
Android
.
shareDialog
(
"
file://
"
+
url
)
:
shareDialog
.
show
([
url
])
if
(
isAndroid
)
{
Maui
.
Android
.
shareDialog
(
url
)
return
}
_dialogLoader
.
sourceComponent
=
_shareDialogComponent
root
.
dialog
.
show
([
url
])
}
}
...
...
view_models/BabeTable/TableMenu.qml
View file @
151658d7
...
...
@@ -90,16 +90,16 @@ Menu
}
MenuItem
{
visible
:
Maui
.
App
.
handleAccounts
text
:
qsTr
(
"
Copy to cloud
"
)
onTriggered
:
{
copyToClicked
()
close
()
}
}
//
MenuItem
//
{
//
visible: Maui.App.handleAccounts
//
text: qsTr("Copy to cloud")
//
onTriggered:
//
{
//
copyToClicked()
//
close()
//
}
//
}
MenuItem
{
...
...
widgets/SelectionBarMenu.qml
View file @
151658d7
...
...
@@ -88,8 +88,14 @@ Menu
text
:
qsTr
(
"
Share...
"
)
onTriggered
:
{
isAndroid
?
Maui
.
Android
.
shareDialog
(
_selectionBar
.
selectedPaths
)
:
shareDialog
.
show
(
_selectionBar
.
selectedPaths
)
if
(
isAndroid
)
{
Maui
.
Android
.
shareDialog
(
_selectionBar
.
selectedPaths
)
return
}
_dialogLoader
.
sourceComponent
=
_shareDialogComponent
root
.
dialog
.
show
(
_selectionBar
.
selectedPaths
)
close
()
}
}
...
...
widgets/SettingsView/SourcesDialog.qml
View file @
151658d7
...
...
@@ -28,8 +28,9 @@ Maui.Dialog
onAccepted
:
{
fmDialog
.
settings
.
onlyDirs
=
true
fmDialog
.
show
(
function
(
paths
)
_dialogLoader
.
sourceComponent
=
_fmDialogComponent
root
.
dialog
.
settings
.
onlyDirs
=
true
root
.
dialog
.
show
(
function
(
paths
)
{
console
.
log
(
"
SCAN DIR <<
"
,
paths
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment