Skip to content

Commit

Permalink
fix bug: autoconnect didnt work right after opening the app
Browse files Browse the repository at this point in the history
  • Loading branch information
o-bagge committed Feb 4, 2024
1 parent 8356ec3 commit b3d5ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion open_earable/lib/controls_tab/views/connect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class _ConnectCard extends State<ConnectCard> {
void initState() {
super.initState();
_getPrefs();
_startAutoConnectScan();
}

@override
Expand All @@ -40,6 +39,7 @@ class _ConnectCard extends State<ConnectCard> {
setState(() {
_autoConnectEnabled = prefs.getBool("autoConnectEnabled");
});
_startAutoConnectScan();
}

void _startAutoConnectScan() {
Expand Down

0 comments on commit b3d5ba9

Please sign in to comment.