mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
Fix Turning off Setting
This commit is contained in:
parent
6f4d40ec97
commit
0d25ea9825
1 changed files with 8 additions and 4 deletions
|
@ -219,7 +219,9 @@ function Updater() {
|
||||||
value={settings.autoUpdateNotification}
|
value={settings.autoUpdateNotification}
|
||||||
onChange={(v: boolean) => {
|
onChange={(v: boolean) => {
|
||||||
settings.autoUpdateNotification = v;
|
settings.autoUpdateNotification = v;
|
||||||
settings.updateRelaunch = !v;
|
if (settings.updateRelaunch) {
|
||||||
|
settings.updateRelaunch = !v;
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
note="Shows a notification when Equicord automatically updates"
|
note="Shows a notification when Equicord automatically updates"
|
||||||
disabled={!settings.autoUpdate}
|
disabled={!settings.autoUpdate}
|
||||||
|
@ -230,7 +232,9 @@ function Updater() {
|
||||||
value={settings.updateRelaunch}
|
value={settings.updateRelaunch}
|
||||||
onChange={(v: boolean) => {
|
onChange={(v: boolean) => {
|
||||||
settings.updateRelaunch = v;
|
settings.updateRelaunch = v;
|
||||||
settings.autoUpdateNotification = !v;
|
if (settings.autoUpdateNotification) {
|
||||||
|
settings.autoUpdateNotification = !v;
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
note="Relaunches the app after updating with no prompt"
|
note="Relaunches the app after updating with no prompt"
|
||||||
disabled={!settings.autoUpdate}
|
disabled={!settings.autoUpdate}
|
||||||
|
@ -258,8 +262,8 @@ function Updater() {
|
||||||
|
|
||||||
<Forms.FormTitle tag="h5">Updates</Forms.FormTitle>
|
<Forms.FormTitle tag="h5">Updates</Forms.FormTitle>
|
||||||
|
|
||||||
{isNewer ? <Newer {...commonProps} /> : <Updatable {...commonProps} />}
|
{isNewer ? <Newer {...commonProps} /> : <Updatable {...commonProps} />; }
|
||||||
</SettingsTab>
|
</SettingsTab >
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue