Skip to content

Commit

Permalink
[server] fix always deleting the servers on starts
Browse files Browse the repository at this point in the history
  • Loading branch information
BrightDV committed Mar 3, 2024
1 parent 7a0bbb3 commit d8e657d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ void main() async {
final feedsBox = await Hive.openBox('feeds');
final compareBox = await Hive.openBox('compare');

/* settingsBox.deleteFromDisk();
requestsBox.deleteFromDisk();
historyBox.deleteFromDisk();
feedsBox.deleteFromDisk();
compareBox.deleteFromDisk(); */

/* if (!kIsWeb) {
AwesomeNotifications().initialize(
'resource://drawable/notification_icon',
Expand Down Expand Up @@ -345,8 +351,6 @@ class _MyAppState extends State<MyApp> {
);
supportedLocales.removeAt(supportedLocales.indexOf(const Locale('en')));
supportedLocales.insert(0, const Locale('en'));
Hive.box('settings').delete('customServers');
Hive.box('settings').delete('server');

const String boxboxServerDefaultInstance =
"https://boxbox-server.netlify.app/api";
Expand Down

0 comments on commit d8e657d

Please sign in to comment.