refreshConnectionStatus method
Refreshes connection status from NCEngine.
Implementation
Future<void> refreshConnectionStatus() async {
try {
final status = await NCEngine.getConnectionStatus();
connectionStatusNotifier.value = status;
notifyListeners();
} catch (_) {
// Keep the previous status when the native engine is not ready yet.
}
}