File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,7 @@ public static List<Action> GetPostLoadTasks(Account acc)
220
220
// 19: Hero:
221
221
( ) =>
222
222
{
223
+ if ( ! acc . Hero . Settings . AutoRefreshInfo ) return ;
223
224
bool heroReady = ( acc . Hero . HeroInfo . Health > acc . Hero . Settings . MinHealth &&
224
225
acc . Hero . Settings . AutoSendToAdventure &&
225
226
acc . Hero . Status == Hero . StatusEnum . Home &&
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public static async Task<bool> PageLoaded(Account acc)
28
28
var counter = 3 ;
29
29
while ( ! acc . Wb . CheckChromeOpen ( ) )
30
30
{
31
- acc . Logger . Warning ( "Chrome browser missing" ) ;
31
+ acc . Logger . Warning ( "Chrome browser missing" ) ;
32
32
if ( counter == 0 )
33
33
{
34
34
acc . Logger . Warning ( "Chrome still missing after 3 times restart. Pause bot (suggest logout bot before use bot on this account)" ) ;
@@ -61,7 +61,6 @@ public static async Task<bool> PageLoaded(Account acc)
61
61
acc . Tasks . Add ( new EditPreferences ( )
62
62
{
63
63
ExecuteAt = DateTime . Now . AddHours ( - 1 ) ,
64
- TroopsPerPage = 99 ,
65
64
ContextualHelp = true
66
65
} , true ) ;
67
66
}
Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ public override async Task<TaskRes> Execute(Account acc)
15
15
StopFlag = false ;
16
16
17
17
{
18
- acc . Tasks . Add ( new HeroUpdateInfo ( ) { ExecuteAt = DateTime . Now } ) ;
18
+ if ( acc . Hero . Settings . AutoRefreshInfo )
19
+ {
20
+ acc . Tasks . Add ( new HeroUpdateInfo ( ) { ExecuteAt = DateTime . Now } ) ;
21
+ }
19
22
}
20
23
21
24
{
You can’t perform that action at this time.
0 commit comments