Commit 74f58f0
smc: address Copilot review on #8820
share_my_connection.dart:
- autoStart unconditionally starts ShareMode.unbounded, dropping
the manual-port and UPnP-probe branches. The auto path is the
low-friction Unbounded-only surface; SmC requires the explicit
disclosure dialog enforced by toggle(). Without this fix, a
user who'd configured a manual port (or got lucky on the mock
probe) would silently land in SmC mode without ever seeing the
disclosure, turning their device into a residential exit they
never agreed to.
- _fallbackToUnbounded: added a comment documenting the
intentional reuse of the prior _start's event subscription. The
invariant works because the error path stays inside the same
subscription; flipping state.mode keeps the same forwarder
pushing events for Unbounded. _stop is the only teardown path.
- Welcome dialog 'restrictors' → 'restrictions' typo; normalized
the surrounding paragraph to single-quote-delimited strings
(the inner curly quote in 'digital bridges' is retained — it's
intentional inside the prose).
- About-bubble tooltip moved through .i18n.
unbounded_setting.dart + setting.dart:
- New i18n keys added to en.po:
unbounded_settings_title
auto_enable_unbounded / auto_enable_unbounded_subtitle
hide_unbounded / hide_unbounded_subtitle
about_unbounded
All hardcoded English strings in the new screens replaced with
.i18n lookups, matching the existing pattern in vpn_setting.dart.
dart analyze clean on the touched files.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent caba92d commit 74f58f0
4 files changed
Lines changed: 51 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | 560 | | |
564 | 561 | | |
565 | 562 | | |
566 | 563 | | |
567 | 564 | | |
568 | 565 | | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
569 | 570 | | |
570 | 571 | | |
571 | 572 | | |
| |||
680 | 681 | | |
681 | 682 | | |
682 | 683 | | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
683 | 702 | | |
684 | 703 | | |
685 | 704 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
Lines changed: 23 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
312 | 319 | | |
313 | 320 | | |
314 | 321 | | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
| 322 | + | |
329 | 323 | | |
330 | 324 | | |
331 | 325 | | |
| |||
670 | 664 | | |
671 | 665 | | |
672 | 666 | | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
673 | 674 | | |
674 | 675 | | |
675 | 676 | | |
| |||
1806 | 1807 | | |
1807 | 1808 | | |
1808 | 1809 | | |
1809 | | - | |
| 1810 | + | |
1810 | 1811 | | |
1811 | | - | |
1812 | | - | |
1813 | | - | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
1814 | 1815 | | |
1815 | 1816 | | |
1816 | 1817 | | |
| |||
0 commit comments