Persist Flutter-selected download directory changes#1352
Draft
Persist Flutter-selected download directory changes#1352
Conversation
Agent-Logs-Url: https://github.com/GopeedLab/gopeed/sessions/e673cfca-8860-4ab0-9ec9-491574ffdb2a Co-authored-by: monkeyWie <13160176+monkeyWie@users.noreply.github.com>
Agent-Logs-Url: https://github.com/GopeedLab/gopeed/sessions/e673cfca-8860-4ab0-9ec9-491574ffdb2a Co-authored-by: monkeyWie <13160176+monkeyWie@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix default download folder setting issue
Persist Flutter-selected download directory changes
Apr 13, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1352 +/- ##
==========================================
+ Coverage 71.24% 71.27% +0.03%
==========================================
Files 49 49
Lines 6566 6566
==========================================
+ Hits 4678 4680 +2
+ Misses 1460 1458 -2
Partials 428 428 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changing the default download directory in the Flutter settings UI updated the visible field but did not persist the new value. As a result, subsequent downloads continued using the previous directory.
Root cause
downloadDirthroughonEditComplete.DirectorySelectorupdatedcontroller.textdirectly for picker/toggle-driven changes, so those updates never reached the config save path.Flutter persistence fix
updateDirectorySelection(...)helper inui/flutter/lib/app/views/directory_selector.dart.Covered selection paths
Focused test coverage
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
239.255.255.250REDACTED, pid is -1(packet block)dht.aelitis.com/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)/tmp/go-build2045490060/b866/download.test /tmp/go-build2045490060/b866/download.test -test.testlogfile=/tmp/go-build2045490060/b866/testlog.txt -test.paniconexit0 -test.timeout=10m0s -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z(dns block)dht.anacrolix.link/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)/tmp/go-build2045490060/b866/download.test /tmp/go-build2045490060/b866/download.test -test.testlogfile=/tmp/go-build2045490060/b866/testlog.txt -test.paniconexit0 -test.timeout=10m0s -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z(dns block)dht.libtorrent.org/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)/tmp/go-build2045490060/b866/download.test /tmp/go-build2045490060/b866/download.test -test.testlogfile=/tmp/go-build2045490060/b866/testlog.txt -test.paniconexit0 -test.timeout=10m0s -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z(dns block)dht.transmissionbt.com/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)/tmp/go-build2045490060/b866/download.test /tmp/go-build2045490060/b866/download.test -test.testlogfile=/tmp/go-build2045490060/b866/testlog.txt -test.paniconexit0 -test.timeout=10m0s -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z(dns block)explodie.org/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)github.com.git/tmp/go-build2045490060/b881/rest.test /tmp/go-build2045490060/b881/rest.test -test.testlogfile=/tmp/go-build2045490060/b881/testlog.txt -test.paniconexit0 -test.timeout=10m0s -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z(dns block)https://api.github.com/repos/GopeedLab/gopeed/releases/latest/tmp/go-build2045490060/b866/download.test /tmp/go-build2045490060/b866/download.test -test.testlogfile=/tmp/go-build2045490060/b866/testlog.txt -test.paniconexit0 -test.timeout=10m0s -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z(http block)ipv4.tracker.harry.lu/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)ipv6.torrent.ubuntu.com/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)/tmp/go-build2045490060/b866/download.test /tmp/go-build2045490060/b866/download.test -test.testlogfile=/tmp/go-build2045490060/b866/testlog.txt -test.paniconexit0 -test.timeout=10m0s -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z(dns block)non-existent-host-12345.example/tmp/go-build2045490060/b866/download.test /tmp/go-build2045490060/b866/download.test -test.testlogfile=/tmp/go-build2045490060/b866/testlog.txt -test.paniconexit0 -test.timeout=10m0s -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z(dns block)open.stealth.si/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)opentor.org/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)p4p.arenabg.com/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)router.bittorrent.cloud/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)/tmp/go-build2045490060/b866/download.test /tmp/go-build2045490060/b866/download.test -test.testlogfile=/tmp/go-build2045490060/b866/testlog.txt -test.paniconexit0 -test.timeout=10m0s -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z(dns block)router.bittorrent.com/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)/tmp/go-build2045490060/b866/download.test /tmp/go-build2045490060/b866/download.test -test.testlogfile=/tmp/go-build2045490060/b866/testlog.txt -test.paniconexit0 -test.timeout=10m0s -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z(dns block)router.silotis.us/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)/tmp/go-build2045490060/b866/download.test /tmp/go-build2045490060/b866/download.test -test.testlogfile=/tmp/go-build2045490060/b866/testlog.txt -test.paniconexit0 -test.timeout=10m0s -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z(dns block)router.utorrent.com/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)/tmp/go-build2045490060/b866/download.test /tmp/go-build2045490060/b866/download.test -test.testlogfile=/tmp/go-build2045490060/b866/testlog.txt -test.paniconexit0 -test.timeout=10m0s -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z(dns block)torrent.ubuntu.com/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)/tmp/go-build2045490060/b866/download.test /tmp/go-build2045490060/b866/download.test -test.testlogfile=/tmp/go-build2045490060/b866/testlog.txt -test.paniconexit0 -test.timeout=10m0s -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z(dns block)tracker.birkenwald.de/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)tracker.bitsearch.to/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)tracker.cyberia.is/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)tracker.dler.org/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)tracker.files.fm/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)tracker.foreverpirates.co/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)tracker.moeking.me/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)tracker.opentrackr.org/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)tracker.tiny-vps.com/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)tracker.torrent.eu.org/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)uploads.gamecoast.net/tmp/go-build2045490060/b850/bt.test /tmp/go-build2045490060/b850/bt.test -test.testlogfile=/tmp/go-build2045490060/b850/testlog.txt -test.paniconexit0 -test.timeout=10m0s 5490�� 5490060/b808/_pk-pthread pkg/mod/go4.org@-Wl,--no-gc-sections x64/pkg/tool/lin-fmessage-length=0 -p /minlz -lang=go1.23 R4wGUajbdHRW(dns block)If you need me to access, download, or install something from one of these locations, you can either: