Skip to content

Commit

Permalink
database now always download when missing
Browse files Browse the repository at this point in the history
  • Loading branch information
apps4av committed Aug 30, 2024
1 parent 289fa56 commit 50e555b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/app_settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AppSettings {
}

bool isLightMode() {
return provider.getValue("key-light-mode", defaultValue: true) as bool;
return provider.getValue("key-light-mode", defaultValue: false) as bool;
}

void setLightMode(bool lightMode) {
Expand Down
4 changes: 4 additions & 0 deletions lib/download_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ class DownloadScreenState extends State<DownloadScreen> {
if(!ct.enabled) {
continue;
}
if(ct.name == "Databases" && ct.state == _stateAbsentNone) {
// if database is missing, download, there is no need to operate with db
ct.state = _stateAbsentDownload;
}
// download expired or to-download item
if (ct.state == _stateAbsentDownload ||
ct.state == _stateCurrentDownload ||
Expand Down
1 change: 0 additions & 1 deletion lib/longpress_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ class LongPressWidgetState extends State<LongPressWidget> {
double height = Constants.screenHeight(context);
double dimensions = width > height ? height : width;
Widget ad = Airport.runwaysWidget(future.showDestination as AirportDestination, dimensions, context);
print("eeeeee");
airportDiagram = Center(child: ad);
}

Expand Down
1 change: 1 addition & 0 deletions lib/onboarding_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ class OnBoardingScreenState extends State<OnBoardingScreen> {
pages: [
PageViewModel(
title: "Sign the Terms of Use",

bodyWidget: Column(children: [
const Text(
"""
Expand Down

0 comments on commit 50e555b

Please sign in to comment.