File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ class ThemeStateNotifier extends StateNotifier<SettingsModel> {
33
33
HistoryRetentionPeriod ? historyRetentionPeriod,
34
34
String ? workspaceFolderPath,
35
35
bool ? isSSLDisabled,
36
+ bool ? isDashBotEnabled,
36
37
}) async {
37
38
state = state.copyWith (
38
39
isDark: isDark,
@@ -47,6 +48,7 @@ class ThemeStateNotifier extends StateNotifier<SettingsModel> {
47
48
historyRetentionPeriod: historyRetentionPeriod,
48
49
workspaceFolderPath: workspaceFolderPath,
49
50
isSSLDisabled: isSSLDisabled,
51
+ isDashBotEnabled: isDashBotEnabled,
50
52
);
51
53
await setSettingsToSharedPrefs (state);
52
54
}
Original file line number Diff line number Diff line change @@ -50,6 +50,18 @@ class SettingsPage extends ConsumerWidget {
50
50
ref.read (settingsProvider.notifier).update (isDark: value);
51
51
},
52
52
),
53
+ ADListTile (
54
+ type: ListTileType .switchOnOff,
55
+ title: 'DashBot' ,
56
+ subtitle:
57
+ 'Current selection: ${settings .isDashBotEnabled ? "Enabled" : "Disabled" }' ,
58
+ value: settings.isDashBotEnabled,
59
+ onChanged: (bool ? value) {
60
+ ref
61
+ .read (settingsProvider.notifier)
62
+ .update (isDashBotEnabled: value);
63
+ },
64
+ ),
53
65
ADListTile (
54
66
type: ListTileType .switchOnOff,
55
67
title: 'Collection Pane Scrollbar Visiblity' ,
You can’t perform that action at this time.
0 commit comments