mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: unable to use custom API (#1435)
This commit is contained in:
parent
cfb8980e3a
commit
e74ffac5b0
@ -79,7 +79,6 @@ class ManagerAPI {
|
||||
if (url.isEmpty || url == ' ') {
|
||||
url = defaultApiUrl;
|
||||
}
|
||||
await _revancedAPI.initialize(url);
|
||||
await _revancedAPI.clearAllCache();
|
||||
await _prefs.setString('apiUrl', url);
|
||||
}
|
||||
|
@ -67,6 +67,7 @@ class SManageApiUrl extends BaseViewModel {
|
||||
apiUrl = 'https://$apiUrl';
|
||||
}
|
||||
_managerAPI.setApiUrl(apiUrl);
|
||||
_toast.showBottom('settingsView.restartAppForChanges');
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user