mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 18:25:40 +02:00
Performance upgrae - history control update only when it's really needed
This commit is contained in:
@@ -5,6 +5,8 @@ internal class Globals
|
||||
{
|
||||
public static string strPerunVersion = "DEBUG"; // Helper for pulling version definition
|
||||
public static string[] arrLogHistory = new string[10]; // Log history for GUI
|
||||
public static bool bLogHistoryUpdate = true; // Mark if log control require update
|
||||
public static string strPerunTitleText = "";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ internal class PerunHelper
|
||||
}
|
||||
|
||||
arrLogHistory[arrLogHistory.Length - 1] = DateTime.Now.ToString("HH:mm:ss") + " > " + strEntryToAdd; // Add entry at the last position
|
||||
Globals.bLogHistoryUpdate = true;
|
||||
}
|
||||
public static string GetAppVersion(string strBeginning)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user