mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-21 16:01:58 +00:00
fix: improve handling of proxy server URL in dialog
This commit is contained in:
parent
b5d37caaa9
commit
e40e1b8fe6
1 changed files with 6 additions and 1 deletions
|
|
@ -352,9 +352,14 @@ void _showAndroidProxyServerDialog(
|
||||||
width: context.width(1),
|
width: context.width(1),
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
server.split('/').removeLast();
|
||||||
|
final s = server.split('/');
|
||||||
|
if (s.isNotEmpty && s.last.isEmpty) {
|
||||||
|
s.removeLast();
|
||||||
|
}
|
||||||
ref
|
ref
|
||||||
.read(androidProxyServerStateProvider.notifier)
|
.read(androidProxyServerStateProvider.notifier)
|
||||||
.set(server);
|
.set(s.join('/'));
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
child: Text(context.l10n.dialog_confirm),
|
child: Text(context.l10n.dialog_confirm),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue