mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 05:13:29 -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}
|
||||
onChange={(v: boolean) => {
|
||||
settings.autoUpdateNotification = v;
|
||||
settings.updateRelaunch = !v;
|
||||
if (settings.updateRelaunch) {
|
||||
settings.updateRelaunch = !v;
|
||||
}
|
||||
}}
|
||||
note="Shows a notification when Equicord automatically updates"
|
||||
disabled={!settings.autoUpdate}
|
||||
|
@ -230,7 +232,9 @@ function Updater() {
|
|||
value={settings.updateRelaunch}
|
||||
onChange={(v: boolean) => {
|
||||
settings.updateRelaunch = v;
|
||||
settings.autoUpdateNotification = !v;
|
||||
if (settings.autoUpdateNotification) {
|
||||
settings.autoUpdateNotification = !v;
|
||||
}
|
||||
}}
|
||||
note="Relaunches the app after updating with no prompt"
|
||||
disabled={!settings.autoUpdate}
|
||||
|
@ -258,8 +262,8 @@ function Updater() {
|
|||
|
||||
<Forms.FormTitle tag="h5">Updates</Forms.FormTitle>
|
||||
|
||||
{isNewer ? <Newer {...commonProps} /> : <Updatable {...commonProps} />}
|
||||
</SettingsTab>
|
||||
{isNewer ? <Newer {...commonProps} /> : <Updatable {...commonProps} />; }
|
||||
</SettingsTab >
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue