mirror of
https://github.com/redstrate/Astra.git
synced 2025-07-15 05:27:44 +00:00
Disable Linux-only options that aren't relevant on Windows
This commit is contained in:
parent
b67927f5c4
commit
2e50e89793
4 changed files with 17 additions and 0 deletions
|
@ -62,6 +62,7 @@ class LauncherCore : public QObject
|
||||||
Q_PROPERTY(bool loadingFinished READ isLoadingFinished NOTIFY loadingFinished)
|
Q_PROPERTY(bool loadingFinished READ isLoadingFinished NOTIFY loadingFinished)
|
||||||
Q_PROPERTY(bool isSteam READ isSteam CONSTANT)
|
Q_PROPERTY(bool isSteam READ isSteam CONSTANT)
|
||||||
Q_PROPERTY(bool isSteamDeck READ isSteamDeck CONSTANT)
|
Q_PROPERTY(bool isSteamDeck READ isSteamDeck CONSTANT)
|
||||||
|
Q_PROPERTY(bool isWindows READ isWindows CONSTANT)
|
||||||
Q_PROPERTY(LauncherSettings *settings READ settings CONSTANT)
|
Q_PROPERTY(LauncherSettings *settings READ settings CONSTANT)
|
||||||
Q_PROPERTY(ProfileManager *profileManager READ profileManager CONSTANT)
|
Q_PROPERTY(ProfileManager *profileManager READ profileManager CONSTANT)
|
||||||
Q_PROPERTY(AccountManager *accountManager READ accountManager CONSTANT)
|
Q_PROPERTY(AccountManager *accountManager READ accountManager CONSTANT)
|
||||||
|
@ -110,6 +111,7 @@ public:
|
||||||
[[nodiscard]] bool isLoadingFinished() const;
|
[[nodiscard]] bool isLoadingFinished() const;
|
||||||
[[nodiscard]] bool isSteam() const;
|
[[nodiscard]] bool isSteam() const;
|
||||||
[[nodiscard]] bool isSteamDeck() const;
|
[[nodiscard]] bool isSteamDeck() const;
|
||||||
|
[[nodiscard]] bool isWindows() const;
|
||||||
[[nodiscard]] Q_INVOKABLE bool isPatching() const;
|
[[nodiscard]] Q_INVOKABLE bool isPatching() const;
|
||||||
|
|
||||||
[[nodiscard]] QNetworkAccessManager *mgr();
|
[[nodiscard]] QNetworkAccessManager *mgr();
|
||||||
|
|
|
@ -302,6 +302,15 @@ bool LauncherCore::isSteamDeck() const
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool LauncherCore::isWindows() const
|
||||||
|
{
|
||||||
|
#if defined(Q_OS_WIN)
|
||||||
|
return true;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
bool LauncherCore::isPatching() const
|
bool LauncherCore::isPatching() const
|
||||||
{
|
{
|
||||||
return m_isPatching;
|
return m_isPatching;
|
||||||
|
|
|
@ -90,6 +90,8 @@ FormCard.FormCardPage {
|
||||||
}
|
}
|
||||||
|
|
||||||
FormCard.FormCard {
|
FormCard.FormCard {
|
||||||
|
visible: !LauncherCore.isWindows
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
FormCard.FormComboBoxDelegate {
|
FormCard.FormComboBoxDelegate {
|
||||||
|
@ -139,9 +141,12 @@ FormCard.FormCardPage {
|
||||||
|
|
||||||
FormCard.FormHeader {
|
FormCard.FormHeader {
|
||||||
title: i18n("Tools")
|
title: i18n("Tools")
|
||||||
|
visible: !LauncherCore.isWindows
|
||||||
}
|
}
|
||||||
|
|
||||||
FormCard.FormCard {
|
FormCard.FormCard {
|
||||||
|
visible: !LauncherCore.isWindows
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
FormCard.FormCheckDelegate {
|
FormCard.FormCheckDelegate {
|
||||||
|
|
|
@ -51,6 +51,7 @@ KirigamiSettings.CategorizedSettings {
|
||||||
text: i18n("Compatibility Tool")
|
text: i18n("Compatibility Tool")
|
||||||
icon.name: "system-run"
|
icon.name: "system-run"
|
||||||
page: Qt.resolvedUrl("/qt/qml/zone/xiv/astra/ui/Settings/CompatibilityToolSetup.qml")
|
page: Qt.resolvedUrl("/qt/qml/zone/xiv/astra/ui/Settings/CompatibilityToolSetup.qml")
|
||||||
|
visible: !LauncherCore.isWindows
|
||||||
},
|
},
|
||||||
KirigamiSettings.SettingAction {
|
KirigamiSettings.SettingAction {
|
||||||
actionName: "devtool"
|
actionName: "devtool"
|
||||||
|
|
Loading…
Add table
Reference in a new issue