mirror of
https://github.com/QRouland/UTPass.git
synced 2024-12-22 01:42:39 +00:00
Show a message if no password if found
This commit is contained in:
parent
17da3a862e
commit
24772bebd7
@ -106,6 +106,8 @@ install(FILES ${PROJECT_NAME}.apparmor DESTINATION ${DATA_DIR})
|
||||
install(DIRECTORY qml DESTINATION ${DATA_DIR})
|
||||
install(DIRECTORY assets DESTINATION ${DATA_DIR})
|
||||
install(DIRECTORY local/lib DESTINATION ${DATA_DIR})
|
||||
install(DIRECTORY password-store DESTINATION ${DATA_DIR})
|
||||
|
||||
|
||||
# Translations
|
||||
file(GLOB_RECURSE I18N_SRC_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/po qml/*.qml qml/*.js)
|
||||
|
0
password-store/.gitKeep
Normal file
0
password-store/.gitKeep
Normal file
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: utpass.qrouland\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-13 18:16+0000\n"
|
||||
"POT-Creation-Date: 2019-03-13 20:28+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
16
qml/Main.qml
16
qml/Main.qml
@ -46,6 +46,17 @@ MainView {
|
||||
id: navigation
|
||||
anchors.fill: parent
|
||||
|
||||
Rectangle {
|
||||
width: page.width
|
||||
visible: folderModel.count == 0
|
||||
height: units.gu(5)
|
||||
Text {
|
||||
text: "No password found in current folder"
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
}
|
||||
|
||||
ListView {
|
||||
id : listViewDirs
|
||||
anchors.fill: parent
|
||||
@ -53,8 +64,8 @@ MainView {
|
||||
model: FolderListModel {
|
||||
id: folderModel
|
||||
nameFilters: ["*.gpg"]
|
||||
rootFolder: "file:assets/lol"
|
||||
folder: "file:assets/lol"
|
||||
rootFolder: "file:password-store"
|
||||
folder: "file:password-store"
|
||||
}
|
||||
delegate: MyComponents.ViewFileDir {
|
||||
id: fileDelegate
|
||||
@ -63,6 +74,5 @@ MainView {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//Component.onCompleted: Pass.speak()
|
||||
}
|
||||
|
@ -5,12 +5,14 @@ Component {
|
||||
Rectangle {
|
||||
width: page.width
|
||||
height: units.gu(5)
|
||||
|
||||
Text {
|
||||
text: fileBaseName
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: units.gu(1)
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
||||
Icon {
|
||||
anchors.right: parent.right
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
@ -19,13 +21,13 @@ Component {
|
||||
name: fileIsDir ? "go-next" : "lock"
|
||||
color: UbuntuColors.orange
|
||||
}
|
||||
MouseArea
|
||||
{
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: { if (fileIsDir){ folderModel.folder = folderModel.folder + "/" + fileName ; backAction.visible = true;} }
|
||||
}
|
||||
CustomBorder
|
||||
{
|
||||
|
||||
CustomBorder {
|
||||
commonBorder: false
|
||||
lBorderwidth: 0
|
||||
rBorderwidth: 0
|
||||
|
Loading…
Reference in New Issue
Block a user