Skip to content

Commit

Permalink
Hotfix for 7B uid and wakelock (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
GameTec-live authored Sep 6, 2023
1 parent 76b10d0 commit 185774c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions chameleonultragui/lib/gui/page/saved_cards.dart
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,6 @@ class SavedCardsPageState extends State<SavedCardsPage> {
.setCards(tags);
appState.changesMade();
Navigator.pop(context);
Navigator.pop(
context); // Close the modal after saving
},
child: Text(localizations
.save_as("7 byte UID")),
Expand Down
4 changes: 3 additions & 1 deletion chameleonultragui/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ class _MainPageState extends State<MainPage> {
statusBarColor: Theme.of(context).colorScheme.surface,
));

WakelockPlus.toggle(enable: page is FlashingPage);
try {
WakelockPlus.toggle(enable: page is FlashingPage);
} catch (_) {}

return MaterialApp(
title: 'Chameleon Ultra GUI', // App Name
Expand Down

0 comments on commit 185774c

Please sign in to comment.