Skip to content

Correct directory#5

Merged
NBA2K1 merged 14 commits intoTestingfrom
Correct-directory
Jul 24, 2025
Merged

Correct directory#5
NBA2K1 merged 14 commits intoTestingfrom
Correct-directory

Conversation

@NBA2K1
Copy link
Copy Markdown
Owner

@NBA2K1 NBA2K1 commented Jul 24, 2025

No description provided.

NBA2K1 added 14 commits July 12, 2025 05:28
On Windows and Linux the files were created in the ~/Documents folder.
Now they will be created in ~/Documents/Mangayomi/databases instead
On Android, iOS and macOS just like how it's done on Windows and Linux.
Before the database files were in the top directory.
macOS and iOS already create a separate "Mangayomi" folder. There is no need to nest the downloads and backup folders in another "Mangayomi" folder.
to make the requestPermission() a little shorter. It's just optics. The logic stays the same.
why make it nullable, set a default value and then use a non-null-assertion (!)?
When deleteTmpDirectory() calls getTmpDirectory(), the directory is first being created and then it is being deleted.
Redundant operation.
@NBA2K1 NBA2K1 merged commit b338dbd into Testing Jul 24, 2025
NBA2K1 added a commit that referenced this pull request Nov 29, 2025
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Cannot use the Ref of totalChapterCacheSizeStateProvider after it has been disposed. This typically happens if:
- A provider rebuilt, but the previous "build" was still pending and is still performing operations.
  You should therefore either use `ref.onDispose` to cancel pending work, or
  check `ref.mounted` after async gaps or anything that could invalidate the provider.
- You tried to use Ref inside `onDispose` or other life-cycles.
  This is not supported, as the provider is already being disposed.

#0      Ref._throwIfInvalidUsage (package:riverpod/src/core/ref.dart:220:7)
ref.dart:220
#1      AnyNotifier.state= (package:riverpod/src/core/provider/notifier_provider.dart:91:9)
notifier_provider.dart:91
#2      TotalChapterCacheSizeState.build.<anonymous closure> (package:mangayomi/modules/more/data_and_storage/providers/storage_usage.dart:17:42)
storage_usage.dart:17
#3      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:948:45)
future_impl.dart:948
#4      Future._propagateToListeners (dart:async/future_impl.dart:977:13)
future_impl.dart:977
#5      Future._completeWithValue (dart:async/future_impl.dart:720:5)
future_impl.dart:720
<asynchronous suspension>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant