Skip to content

Commit

Permalink
💾 Feat(SettingsPage): When entering page and check if log file exists…
Browse files Browse the repository at this point in the history
…, update var so that ui can be updated.
  • Loading branch information
Dynesshely committed Mar 9, 2023
1 parent 3a32452 commit 5c71499
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kitx_mobile/lib/pages/settings_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ class _SettingsPageState extends State<SettingsPage> {
var file = File(logFilePath);
if (file.existsSync()) {
logFileSizeString.value = convert2string(file.lengthSync());
logFileExists.value = true;
} else {
logFileSizeString.value = 'File $logFilePath don\'t exists';
logFileExists.value = false;
}
}

Expand Down

0 comments on commit 5c71499

Please sign in to comment.