mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 01:38:01 +01:00
Fix enumerating drivers
This commit is contained in:
@@ -193,7 +193,7 @@ public static partial class Application // Initialization (Init/Shutdown)
|
||||
{
|
||||
foreach (Type? type in asm.GetTypes ())
|
||||
{
|
||||
if (type.IsSubclassOf (typeof (IConsoleDriver)) && !type.IsAbstract)
|
||||
if (typeof (IConsoleDriver).IsAssignableFrom (type) && !type.IsAbstract && type.IsClass)
|
||||
{
|
||||
driverTypes.Add (type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user