Skip to content

Commit

Permalink
⚡ Fixed Settings Option in Power Mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
omegaui committed Dec 29, 2023
1 parent 727cdb6 commit 6647b0b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/app/powermode/presentation/panels/search_panel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class _SearchPanelState extends State<SearchPanel> {
const DateFilter(),
const Gap(8),
IconButton(
tooltip: "Toggle Sorting Mode",
onPressed: () {
PowerDataHandler.toggleSortMode();
},
Expand All @@ -128,9 +129,12 @@ class _SearchPanelState extends State<SearchPanel> {
),
const Gap(8),
IconButton(
tooltip: "Toggle Sorting Mode",
onPressed: () {
PowerDataHandler.toggleSortMode();
if (isBackgroundServiceAlive) {
showPowerSettings(context);
} else {
showDaemonManagerDialog(context);
}
},
icon: Icon(
isBackgroundServiceAlive ? Icons.settings : Icons.warning,
Expand Down

0 comments on commit 6647b0b

Please sign in to comment.