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