Skip to content

Commit

Permalink
Merge pull request #4
Browse files Browse the repository at this point in the history
ef66f9b Wizard: bugfix for "next" button on password page (Ilya Kitaev)
cb45a37 Language files added to resources (Ilya Kitaev)
  • Loading branch information
fluffypony committed Jan 28, 2016
2 parents d546bac + ef66f9b commit 0429aac
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
4 changes: 0 additions & 4 deletions monero-core.pro
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,3 @@ QML_IMPORT_PATH =
# Default rules for deployment.
include(deployment.pri)

# copy language files (xml and images) to the output directory
copydata.commands = $(COPY_DIR) $$shell_path($$PWD/lang) $$shell_path($$DESTDIR/lang)
QMAKE_EXTRA_TARGETS += copydata
POST_TARGETDEPS += copydata
11 changes: 11 additions & 0 deletions qml.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,16 @@
<file>wizard/WizardDonation.qml</file>
<file>wizard/WizardFinish.qml</file>
<file>wizard/WizardPasswordInput.qml</file>
<file>lang/languages.xml</file>
<file>lang/flags/bangladesh.png</file>
<file>lang/flags/brazil.png</file>
<file>lang/flags/china.png</file>
<file>lang/flags/german.png</file>
<file>lang/flags/india.png</file>
<file>lang/flags/palestine.png</file>
<file>lang/flags/rpa.png</file>
<file>lang/flags/russia.png</file>
<file>lang/flags/uk.png</file>
<file>lang/flags/usa.png</file>
</qresource>
</RCC>
8 changes: 3 additions & 5 deletions wizard/WizardMain.qml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@ Rectangle {

// disallow "next" button until passwords match
if (pages[currentPage] === passwordPage) {
nextButton.visible = passwordPage.passwordValid
}

// display settings summary
if (pages[currentPage] === finishPage) {
nextButton.visible = passwordPage.passwordValid;
} else if (pages[currentPage] === finishPage) {
// display settings summary
finishPage.updateSettingsSummary();
nextButton.visible = false
} else {
Expand Down
4 changes: 2 additions & 2 deletions wizard/WizardWelcome.qml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Item {

XmlListModel {
id: languagesModel
source: "file:///" + applicationDirectory + "/lang/languages.xml"
source: "/lang/languages.xml"
query: "/languages/language"

XmlRole { name: "name"; query: "@name/string()" }
Expand Down Expand Up @@ -113,7 +113,7 @@ Item {
color: gridView.currentIndex === index ? "#DBDBDB" : "#FFFFFF"
Image {
anchors.centerIn: parent
source: "file:///" + applicationDirectory + flag
source: flag
}
}

Expand Down

0 comments on commit 0429aac

Please sign in to comment.