Skip to content

Commit

Permalink
small bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrquantumoff committed Oct 23, 2023
1 parent 7dc1dae commit 5228e10
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/other/backend.dart
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ Future<Mod> getMod(
break;
}

latestVersionUrl = item["downloadUrl"];
latestVersionUrl = Uri.decodeFull(item["downloadUrl"]);
break;
}
}
Expand Down Expand Up @@ -297,7 +297,7 @@ Future<Mod> getMod(
Uri.decodeFull(preVersion.trim())) {
latestVersionUrl = "";
} else {
latestVersionUrl = primaryFile["url"];
latestVersionUrl = Uri.decodeFull(primaryFile["url"]);
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion lib/pages/web/mod/mod.dart
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,8 @@ class _ModState extends State<Mod> with AutomaticKeepAliveClientMixin {
: const EdgeInsets.symmetric(vertical: 20),
child: widget.showPreVersion
? Text(
"${widget.preVersion} -> ${widget.newVersionUrl.trim().split("/").last}")
"${widget.preVersion} -> ${widget.newVersionUrl.trim().split("/").last}",
)
: Container(),
),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ class _UpdateModpackPageState extends State<UpdateModpackPage> {
modSrc,
(val) => null,
versionShow: true,
preVersion: mod["downloadUrl"].toString().trim().split("/").last,
preVersion: Uri.decodeFull(
mod["downloadUrl"].toString().trim().split("/").last,
),
versionTarget: widget.targetVersion,
downloadable: false,
modLoader: widget.modLoader,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/pages/web/web_sources.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'package:quadrant/pages/web/filter_mods.dart';
import 'package:quadrant/pages/web/generate_user_agent.dart';
import 'dart:convert';
import 'package:quadrant/pages/web/mod/mod.dart';
import 'package:quadrant/pages/web/update_modpack.dart';
import 'package:quadrant/pages/web/modpack_update_page/modpack_update_page.dart/update_modpack.dart';

class UserAgentClient extends http.BaseClient {
final String userAgent;
Expand Down

0 comments on commit 5228e10

Please sign in to comment.