Skip to content

Commit

Permalink
feat: trim extra space when setting custom source
Browse files Browse the repository at this point in the history
  • Loading branch information
validcube committed Apr 2, 2023
1 parent 61e498c commit 2365ca7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ class SManageSources extends BaseViewModel {
CustomMaterialButton(
label: I18nText('okButton'),
onPressed: () {
_managerAPI.setRepoUrl(_hostSourceController.text);
_managerAPI.setRepoUrl(_hostSourceController.text.trim());
_managerAPI.setPatchesRepo(
'${_orgPatSourceController.text}/${_patSourceController.text}',
'${_orgPatSourceController.text.trim()}/${_patSourceController.text.trim()}',
);
_managerAPI.setIntegrationsRepo(
'${_orgIntSourceController.text}/${_intSourceController.text}',
'${_orgIntSourceController.text.trim()}/${_intSourceController.text.trim()}',
);
_toast.showBottom('settingsView.restartAppForChanges');
Navigator.of(context).pop();
Expand Down

0 comments on commit 2365ca7

Please sign in to comment.