feat: Add debug logging for drawing navigation and toolbar actions

This commit is contained in:
Janez T
2025-10-23 20:29:51 +02:00
parent 1688d6f538
commit 795f223fe8
3 changed files with 29 additions and 1 deletions

View File

@@ -377,6 +377,13 @@ class DrawingToolbar extends StatelessWidget {
);
if (!connectionProvider.deviceInfo.isConnected) {
debugPrint(' ❌ Not connected - showing error toast');
if (context.mounted) {
ToastLogger.error(
context,
AppLocalizations.of(context)!.notConnectedToDevice,
);
}
return;
}
@@ -390,6 +397,13 @@ class DrawingToolbar extends StatelessWidget {
debugPrint(' Total drawings count: ${drawingProvider.drawings.length}');
if (unsharedDrawings.isEmpty) {
debugPrint(' No unshared drawings - showing info toast');
if (context.mounted) {
ToastLogger.info(
context,
'All drawings have already been shared',
);
}
return;
}