Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[23] Add link to "Quick Install Guide" after flashing #63

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading