mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 09:12:57 -07:00
Fixed #4140
This commit is contained in:
parent
1d5b6f3c89
commit
5bd85a3aac
3 changed files with 8 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
|||
using Microsoft.Extensions.PlatformAbstractions;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Ombi.Helpers
|
||||
|
@ -8,7 +9,8 @@ namespace Ombi.Helpers
|
|||
public static string GetRuntimeVersion()
|
||||
{
|
||||
ApplicationEnvironment app = PlatformServices.Default.Application;
|
||||
return app.ApplicationVersion;
|
||||
var split = app.ApplicationVersion.Split('.');
|
||||
return string.Join('.', split.Take(3));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue