2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 21:46:46 +00:00

Fix _connecting flag for API

This commit is contained in:
Oliver Walters 2021-02-10 00:14:40 +11:00
parent 0afac83483
commit 9324737813

View File

@ -143,7 +143,7 @@ class InvenTreeAPI {
// Connection status flag - set once connection has been validated // Connection status flag - set once connection has been validated
bool _connected = false; bool _connected = false;
bool _connecting = true; bool _connecting = false;
bool isConnected() { bool isConnected() {
return profile != null && _connected && baseUrl.isNotEmpty && _token.isNotEmpty; return profile != null && _connected && baseUrl.isNotEmpty && _token.isNotEmpty;