Skip to content

Commit

Permalink
Stabilize some experimental features
Browse files Browse the repository at this point in the history
  • Loading branch information
mrquantumoff committed Oct 2, 2024
1 parent b1a87dc commit e64d599
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions lib/pages/web/mod/mod.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import 'package:flutter/services.dart';
import 'package:flutter_animate/flutter_animate.dart';
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:get/get.dart';
import 'package:get_storage_qnt/get_storage.dart';
import 'package:http/http.dart' as http;
import 'package:intl/intl.dart';
Expand Down Expand Up @@ -735,20 +734,7 @@ class _ModState extends State<Mod> with AutomaticKeepAliveClientMixin {
child: widget.downloadable && !widget.autoInstall
? FilledButton.icon(
onPressed: () {
if (GetStorage()
.read("experimentalFeatures")) {
action();
} else {
Get.to(
() => InstallModPage(
versions: versionItems,
mod: widget,
modpacks: modpackItems,
source: widget.source,
modClass: widget.modClass,
),
);
}
action();
},
icon: installable
? const Icon(Icons.download)
Expand Down Expand Up @@ -1046,8 +1032,7 @@ class _ModState extends State<Mod> with AutomaticKeepAliveClientMixin {
closedElevation: 0,
openElevation: 0,
transitionDuration: Durations.long2,
tappable:
widget.downloadable && GetStorage().read("experimentalFeatures"),
tappable: widget.downloadable,
),
),
);
Expand Down

0 comments on commit e64d599

Please sign in to comment.