mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-01-11 22:40:36 +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),
|
||||
child: ElevatedButton(
|
||||
onPressed: () {
|
||||
server.split('/').removeLast();
|
||||
final s = server.split('/');
|
||||
if (s.isNotEmpty && s.last.isEmpty) {
|
||||
s.removeLast();
|
||||
}
|
||||
ref
|
||||
.read(androidProxyServerStateProvider.notifier)
|
||||
.set(server);
|
||||
.set(s.join('/'));
|
||||
Navigator.pop(context);
|
||||
},
|
||||
child: Text(context.l10n.dialog_confirm),
|
||||
|
|
|
|||
Loading…
Reference in a new issue