mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Handle benchmark path without ConfigurationManager
- Set ForceDriver directly when ConfigurationManager is not enabled - Ensures benchmarks work correctly with --driver option Co-authored-by: tig <585482+tig@users.noreply.github.com>
This commit is contained in:
@@ -468,6 +468,12 @@ public class UICatalog
|
||||
scenario.StartBenchmark ();
|
||||
}
|
||||
|
||||
// For benchmarking without ConfigurationManager, set ForceDriver directly
|
||||
if (!ConfigurationManager.IsEnabled && !string.IsNullOrEmpty (_forceDriver))
|
||||
{
|
||||
Application.ForceDriver = _forceDriver;
|
||||
}
|
||||
|
||||
scenario.Main ();
|
||||
|
||||
BenchmarkResults? results = null;
|
||||
|
||||
Reference in New Issue
Block a user