We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d622c3a commit 4d16c63Copy full SHA for 4d16c63
Include/BadRobot.Framework/BadRobot.mqh
326 Bytes
Include/BadRobot.Framework/Logger.mqh
@@ -11,6 +11,7 @@ class Logger
11
{
12
private:
13
string _logs[10];
14
+ bool _hasChanges;
15
16
void Add(string txt){
17
@@ -22,6 +23,7 @@ class Logger
22
23
}
24
25
_logs[0] = txt;
26
+ _hasChanges = true;
27
28
29
@@ -76,6 +78,18 @@ class Logger
76
78
string Last(){
77
79
return _logs[0];
80
81
+
82
+ bool HasChanges()
83
+ {
84
+ if(_hasChanges)
85
86
+ _hasChanges = false;
87
+ return true;
88
+ }
89
90
+ return false;
91
92
93
94
95
};
0 commit comments