Skip to content

Commit

Permalink
Dont show message on every press + log
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedon-dev committed Nov 9, 2024
1 parent 2761218 commit 7970f9d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/ui/screens/settings/settings_about.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,15 @@ class AboutScreen extends StatelessWidget {
title: const Text("App name"),
subtitle: Text(packageInfo.appName),
onTap: () {
if (kDebugMode) {
ToastMessageShower.showToast(
"Dev settings permanently enabled in debug releases. Refusing to toggle",
context);
return;
}
if (devSettingsCounter == 6) {
if (kDebugMode) {
logger.w(
"Dev settings permanently enabled in debug releases. Refusing to toggle");
ToastMessageShower.showToast(
"Dev settings permanently enabled in debug releases. Refusing to toggle",
context);
return;
}
if (devSettingsEnabled) {
// disable tester plugin if leaving debug mode
PluginManager.disablePlugin(
Expand Down

0 comments on commit 7970f9d

Please sign in to comment.