Add DisableUpdateNotifications setting
Lets the user turn notifications off completely
This commit is contained in:
parent
a366328472
commit
b333c738be
5 changed files with 9 additions and 2 deletions
|
|
@ -4,4 +4,5 @@ export class Profile {
|
||||||
public expiration: Date;
|
public expiration: Date;
|
||||||
public currentVersion: string;
|
public currentVersion: string;
|
||||||
public latestVersion: string;
|
public latestVersion: string;
|
||||||
|
public disableUpdateNotification: boolean;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
</nav>
|
</nav>
|
||||||
<div
|
<div
|
||||||
class="notification is-warning"
|
class="notification is-warning"
|
||||||
*ngIf="profile && profile.latestVersion && profile.currentVersion !== profile.latestVersion"
|
*ngIf="profile && !profile.disableUpdateNotification && profile.latestVersion && profile.currentVersion !== profile.latestVersion"
|
||||||
>
|
>
|
||||||
Version {{ profile.latestVersion }} of RealDebrid Client was found. You are currently on version
|
Version {{ profile.latestVersion }} of RealDebrid Client was found. You are currently on version
|
||||||
{{ profile.currentVersion }}.
|
{{ profile.currentVersion }}.
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,10 @@ Supports the following parameters:
|
||||||
[DisplayName("Copy added torrent files")]
|
[DisplayName("Copy added torrent files")]
|
||||||
[Description("When a torrent file or magnet is added, create a copy in this directory.")]
|
[Description("When a torrent file or magnet is added, create a copy in this directory.")]
|
||||||
public String? CopyAddedTorrents { get; set; } = null;
|
public String? CopyAddedTorrents { get; set; } = null;
|
||||||
|
|
||||||
|
[DisplayName("Disable update notifications")]
|
||||||
|
[Description("Ignore update notifications. You will still be notified if the version you are running has a security vulnerability.")]
|
||||||
|
public Boolean DisableUpdateNotifications { get; set; } = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class DbSettingsDownloadClient
|
public class DbSettingsDownloadClient
|
||||||
|
|
|
||||||
|
|
@ -7,4 +7,5 @@ public class Profile
|
||||||
public DateTimeOffset? Expiration { get; set; }
|
public DateTimeOffset? Expiration { get; set; }
|
||||||
public String? CurrentVersion { get; set; }
|
public String? CurrentVersion { get; set; }
|
||||||
public String? LatestVersion { get; set; }
|
public String? LatestVersion { get; set; }
|
||||||
|
public Boolean? DisableUpdateNotification { get; set; }
|
||||||
}
|
}
|
||||||
|
|
@ -413,7 +413,8 @@ public class Torrents(
|
||||||
UserName = user.Username,
|
UserName = user.Username,
|
||||||
Expiration = user.Expiration,
|
Expiration = user.Expiration,
|
||||||
CurrentVersion = UpdateChecker.CurrentVersion,
|
CurrentVersion = UpdateChecker.CurrentVersion,
|
||||||
LatestVersion = UpdateChecker.LatestVersion
|
LatestVersion = UpdateChecker.LatestVersion,
|
||||||
|
DisableUpdateNotification = Settings.Get.General.DisableUpdateNotifications
|
||||||
};
|
};
|
||||||
|
|
||||||
return profile;
|
return profile;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue