Fix bad startup behaviour in backtest mode

This commit is contained in:
Matthias 2022-04-12 20:07:23 +02:00
parent d42f40dea9
commit 55d8e75b03
2 changed files with 4 additions and 0 deletions

View File

@ -181,6 +181,7 @@ export function createBotSubStore(botId: string, botName: string) {
(selectedBot === botId || bgRefresh) &&
getters.autoRefresh &&
getters.isBotOnline &&
state.botStatusAvailable &&
!getters.isWebserverMode
) {
return true;
@ -393,6 +394,7 @@ export function createBotSubStore(botId: string, botName: string) {
},
updateState(state: FtbotStateType, botState: BotState) {
state.botState = botState;
state.botStatusAvailable = true;
},
updateVersion(state: FtbotStateType, version) {
state.version = version.version;

View File

@ -20,6 +20,7 @@ import {
export interface FtbotStateType {
ping: string;
botStatusAvailable: boolean;
isBotOnline: boolean;
autoRefresh: boolean;
refreshing: boolean;
@ -66,6 +67,7 @@ export interface FtbotStateType {
const state = (): FtbotStateType => {
return {
ping: '',
botStatusAvailable: false,
isBotOnline: false,
autoRefresh: false,
refreshing: false,