mirror of
https://github.com/redstrate/Astra.git
synced 2025-05-13 21:07:46 +00:00
Hide Dalamud settings unless it's enabled
Otherwise, it just creates visual noise on the settings page if you don't find it useful.
This commit is contained in:
parent
e150df64b0
commit
d09f2d2418
1 changed files with 11 additions and 3 deletions
|
@ -217,6 +217,7 @@ FormCard.FormCardPage {
|
||||||
FormCard.FormDelegateSeparator {
|
FormCard.FormDelegateSeparator {
|
||||||
above: enableDalamudDelegate
|
above: enableDalamudDelegate
|
||||||
below: dalamudChannelDelegate
|
below: dalamudChannelDelegate
|
||||||
|
visible: page.profile.config.dalamudEnabled
|
||||||
}
|
}
|
||||||
|
|
||||||
FormCard.FormComboBoxDelegate {
|
FormCard.FormComboBoxDelegate {
|
||||||
|
@ -230,18 +231,18 @@ FormCard.FormCardPage {
|
||||||
page.profile.config.save();
|
page.profile.config.save();
|
||||||
}
|
}
|
||||||
enabled: page.profile.config.dalamudEnabled
|
enabled: page.profile.config.dalamudEnabled
|
||||||
|
visible: page.profile.config.dalamudEnabled
|
||||||
}
|
}
|
||||||
|
|
||||||
FormCard.FormDelegateSeparator {
|
FormCard.FormDelegateSeparator {
|
||||||
above: dalamudChannelDelegate
|
above: dalamudChannelDelegate
|
||||||
below: dalamudInjectDelegate
|
below: dalamudInjectDelegate
|
||||||
visible: LauncherCore.config.showDevTools
|
visible: LauncherCore.config.showDevTools && page.profile.config.dalamudEnabled
|
||||||
}
|
}
|
||||||
|
|
||||||
FormCard.FormComboBoxDelegate {
|
FormCard.FormComboBoxDelegate {
|
||||||
id: dalamudInjectDelegate
|
id: dalamudInjectDelegate
|
||||||
|
|
||||||
visible: LauncherCore.config.showDevTools
|
|
||||||
text: i18n("Injection Method")
|
text: i18n("Injection Method")
|
||||||
description: "It shouldn't be necessary to change this setting, unless you're running into issues injecting Dalamud."
|
description: "It shouldn't be necessary to change this setting, unless you're running into issues injecting Dalamud."
|
||||||
model: ["Entrypoint", "DLL Injection"]
|
model: ["Entrypoint", "DLL Injection"]
|
||||||
|
@ -251,17 +252,18 @@ FormCard.FormCardPage {
|
||||||
page.profile.config.save();
|
page.profile.config.save();
|
||||||
}
|
}
|
||||||
enabled: page.profile.config.dalamudEnabled
|
enabled: page.profile.config.dalamudEnabled
|
||||||
|
visible: LauncherCore.config.showDevTools && page.profile.config.dalamudEnabled
|
||||||
}
|
}
|
||||||
|
|
||||||
FormCard.FormDelegateSeparator {
|
FormCard.FormDelegateSeparator {
|
||||||
above: dalamudInjectDelegate
|
above: dalamudInjectDelegate
|
||||||
below: dalamudDelayDelegate
|
below: dalamudDelayDelegate
|
||||||
|
visible: LauncherCore.config.showDevTools && page.profile.config.dalamudEnabled
|
||||||
}
|
}
|
||||||
|
|
||||||
FormCard.FormSpinBoxDelegate {
|
FormCard.FormSpinBoxDelegate {
|
||||||
id: dalamudDelayDelegate
|
id: dalamudDelayDelegate
|
||||||
|
|
||||||
visible: LauncherCore.config.showDevTools
|
|
||||||
label: i18n("Injection Delay")
|
label: i18n("Injection Delay")
|
||||||
value: page.profile.config.dalamudInjectDelay
|
value: page.profile.config.dalamudInjectDelay
|
||||||
onValueChanged: {
|
onValueChanged: {
|
||||||
|
@ -269,14 +271,20 @@ FormCard.FormCardPage {
|
||||||
page.profile.config.save();
|
page.profile.config.save();
|
||||||
}
|
}
|
||||||
enabled: page.profile.config.dalamudEnabled
|
enabled: page.profile.config.dalamudEnabled
|
||||||
|
visible: LauncherCore.config.showDevTools && page.profile.config.dalamudEnabled
|
||||||
}
|
}
|
||||||
|
|
||||||
FormCard.FormDelegateSeparator {
|
FormCard.FormDelegateSeparator {
|
||||||
above: dalamudDelayDelegate
|
above: dalamudDelayDelegate
|
||||||
|
below: dalamudVersionTextDelegate
|
||||||
|
visible: page.profile.config.dalamudEnabled
|
||||||
}
|
}
|
||||||
|
|
||||||
FormCard.FormTextDelegate {
|
FormCard.FormTextDelegate {
|
||||||
|
id: dalamudVersionTextDelegate
|
||||||
|
|
||||||
description: page.profile.dalamudVersionText
|
description: page.profile.dalamudVersionText
|
||||||
|
visible: page.profile.config.dalamudEnabled
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue