mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-10 09:00:15 +02:00
Fixed search error on Add App page (#202)
This commit is contained in:
@@ -127,9 +127,7 @@ class _AddAppPageState extends State<AddAppPage> {
|
|||||||
if (app.additionalSettings['trackOnly'] == true) {
|
if (app.additionalSettings['trackOnly'] == true) {
|
||||||
app.installedVersion = app.latestVersion;
|
app.installedVersion = app.latestVersion;
|
||||||
}
|
}
|
||||||
if (pickedCategories != null) {
|
|
||||||
app.categories = pickedCategories;
|
app.categories = pickedCategories;
|
||||||
}
|
|
||||||
await appsProvider.saveApps([app]);
|
await appsProvider.saveApps([app]);
|
||||||
|
|
||||||
return app;
|
return app;
|
||||||
@@ -290,7 +288,7 @@ class _AddAppPageState extends State<AddAppPage> {
|
|||||||
if (selectedUrls != null &&
|
if (selectedUrls != null &&
|
||||||
selectedUrls.isNotEmpty) {
|
selectedUrls.isNotEmpty) {
|
||||||
changeUserInput(
|
changeUserInput(
|
||||||
selectedUrls[0], true, true);
|
selectedUrls[0], true, false);
|
||||||
addApp(resetUserInputAfter: true);
|
addApp(resetUserInputAfter: true);
|
||||||
}
|
}
|
||||||
}).catchError((e) {
|
}).catchError((e) {
|
||||||
|
Reference in New Issue
Block a user