mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ALL] If output is redirected, don't clear the screen first
This commit is contained in:
@@ -43,7 +43,12 @@ namespace SabreTools
|
||||
// Perform initial setup and verification
|
||||
_logger = new Logger(true, "database.log");
|
||||
_logger.Start();
|
||||
Console.Clear();
|
||||
|
||||
// If output is being redirected, don't allow clear screens
|
||||
if (!Console.IsOutputRedirected)
|
||||
{
|
||||
Console.Clear();
|
||||
}
|
||||
Setup();
|
||||
|
||||
// Credits take precidence over all
|
||||
@@ -536,6 +541,9 @@ namespace SabreTools
|
||||
InitStats(inputs, single);
|
||||
}
|
||||
|
||||
// If nothing is set, show the help
|
||||
Build.Help();
|
||||
|
||||
_logger.Close();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user