Driver updater fix

This commit is contained in:
Serge
2023-06-08 13:20:26 +02:00
parent 306dfe2bd7
commit e16f612311
3 changed files with 18 additions and 30 deletions

View File

@@ -63,22 +63,6 @@ public static class AppConfig
return (_model is not null && _model.ToLower().Contains(contains.ToLower()));
}
public static string GetModelShort()
{
GetModel();
if (_model is not null)
{
int trim = _model.LastIndexOf("_");
if (trim > 0) return _model.Substring(trim+1);
trim = _model.LastIndexOf(" ");
if (trim > 0) return _model.Substring(trim + 1);
return _model;
}
return "";
}
private static void initConfig()
{