feat: task detail view (#633)

This commit is contained in:
Levi authored and GitHub committed 2024-08-08 18:34:00 +08:00
1 parent 3fd3dd49d2
commit 4d60c47d39
22 files changed
+280 -105

No files matched your search

+6 -2
View File
@@ -15,11 +15,15 @@ initLogger() {
);
}
String logsDir() {
return path.join(Util.getStorageDir(), 'logs');
}
_buildOutput() {
// if is debug mode, don't log to file
if (!kDebugMode && Util.isDesktop()) {
final logDirPath = path.join(Util.getStorageDir(), 'logs');
var logDir = Directory(logDirPath);
final logDirPath = logsDir();
var logDir = Directory(logsDir());
if (!logDir.existsSync()) {
logDir.createSync();
}