Skip to content

Commit

Permalink
Merge pull request #63 from jlre249/issue-23
Browse files Browse the repository at this point in the history
  • Loading branch information
elibosley authored Nov 15, 2024
2 parents 3eb98b3 + f6a02da commit cf95dcf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
11 changes: 11 additions & 0 deletions src/MsgPopup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ Popup {
property bool quitButton: false
property bool yesButton: false
property bool noButton: false
property bool installGuideButton: false
signal yes()
signal no()
signal installGuide()

background: Rectangle {
color: UnColors.darkGray
Expand Down Expand Up @@ -138,6 +140,15 @@ Popup {
visible: msgpopup.quitButton
}

ImButton {
text: qsTr("QUICK INSTALL GUIDE")
onClicked: {
msgpopup.installGuide()
}
font.family: roboto.name
visible: msgpopup.installGuideButton
}

Text { text: " " }
}
}
Expand Down
14 changes: 10 additions & 4 deletions src/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ ApplicationWindow {
anchors.topMargin: 10
MouseArea {
anchors.fill: parent
onClicked: imageWriter.openUrl("https://docs.unraid.net/unraid-os/getting-started/quick-install-guide/")
onClicked: imageWriter.openUrl("https://docs.unraid.net/go/quick-install-guide")
}
}

Expand All @@ -108,7 +108,7 @@ ApplicationWindow {
source: "unraid/icons/help_orange.svg"
MouseArea {
anchors.fill: parent
onClicked: imageWriter.openUrl("https://docs.unraid.net/unraid-os/getting-started/quick-install-guide/")
onClicked: imageWriter.openUrl("https://docs.unraid.net/go/quick-install-guide")
}
Layout.preferredHeight: 15
Layout.preferredWidth: 15
Expand Down Expand Up @@ -1363,6 +1363,9 @@ ApplicationWindow {
onOpened: {
forceActiveFocus()
}
onInstallGuide: {
imageWriter.openUrl("https://docs.unraid.net/go/quick-install-guide")
}
}

MsgPopup {
Expand Down Expand Up @@ -1528,8 +1531,11 @@ ApplicationWindow {
}
else {
msgpopup.text = qsTr("<b>%1</b> has been written to <b>%2</b>.").arg(osbutton.text).arg(dstbutton.text)
if(imageWriter.getInitFormat() === "UNRAID" && !imageWriter.windowsBuild()) {
msgpopup.text += qsTr("<br><br>If you would like to enable legacy boot (bios), helpful for old hardware, please run the 'make_bootable_(mac/linux/windows)' script from this computer, located in the main folder of the UNRAID flash drive.")
if(imageWriter.getInitFormat() === "UNRAID") {
if(!imageWriter.windowsBuild()) {
msgpopup.text += qsTr("<br><br>If you would like to enable legacy boot (bios), helpful for old hardware, please run the 'make_bootable_(mac/linux/windows)' script from this computer, located in the main folder of the UNRAID flash drive.")
}
msgpopup.installGuideButton = true
}
}
if (imageWriter.isEmbeddedMode()) {
Expand Down

0 comments on commit cf95dcf

Please sign in to comment.