From 3a8d2aef9e9a18280cc6b59ffd705aedfd56ab64 Mon Sep 17 00:00:00 2001 From: Hendrik Mennen Date: Tue, 23 Jul 2024 10:29:00 +0200 Subject: [PATCH] fix missing needrestart after plugin update --- src/OneWare.Essentials/Models/PackageModel.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/OneWare.Essentials/Models/PackageModel.cs b/src/OneWare.Essentials/Models/PackageModel.cs index 2c5e0431..8ab73728 100644 --- a/src/OneWare.Essentials/Models/PackageModel.cs +++ b/src/OneWare.Essentials/Models/PackageModel.cs @@ -214,6 +214,8 @@ public async Task RemoveAsync() private void UpdateStatus() { + if(Status == PackageStatus.NeedRestart) return; + var lV = Version.TryParse(Package.Versions?.LastOrDefault()?.Version, out var lastVersion); var iV = Version.TryParse(InstalledVersion?.Version ?? "", out var installedVersion);