Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
7reax committed Apr 30, 2022
1 parent a9f3ec7 commit b489367
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void main() async {
options.autoSessionTrackingInterval = const Duration(minutes: 1);
options.dsn = 'https://[email protected]/6233409';
options.tracesSampleRate = 1.0;
options.release = "[email protected].3";
options.release = "[email protected].4";
},
);
applicationDocumentsDirectory = (await getApplicationSupportDirectory()).path;
Expand Down
7 changes: 5 additions & 2 deletions lib/screens/settings/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import 'package:file_picker/file_picker.dart';
import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:flutter_translate/flutter_translate.dart';
import 'package:jiffy/jiffy.dart';
import 'package:kyber_mod_manager/main.dart';
import 'package:kyber_mod_manager/screens/settings/platform_selector.dart';
import 'package:kyber_mod_manager/screens/update_dialog/update_dialog.dart';
import 'package:kyber_mod_manager/screens/walk_through/widgets/nexusmods_login.dart';
import 'package:kyber_mod_manager/utils/app_locale.dart';
import 'package:kyber_mod_manager/utils/auto_updater.dart';
import 'package:kyber_mod_manager/utils/custom_logger.dart';
import 'package:kyber_mod_manager/utils/helpers/platform_helper.dart';
Expand Down Expand Up @@ -92,9 +94,10 @@ class _SettingsState extends State<Settings> {
trailing: SizedBox(
width: 250,
child: Combobox<dynamic>(
onChanged: (dynamic value) {
onChanged: (dynamic value) async {
changeLocale(context, value);
box.put('locale', value);
await box.put('locale', value);
Jiffy.locale(AppLocale().getLocale().languageCode);
},
isExpanded: true,
value: LocalizedApp.of(context).delegate.currentLocale.languageCode,
Expand Down
24 changes: 12 additions & 12 deletions lib/widgets/navigation_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,21 @@ class _NavigationBarState extends State<NavigationBar> {
height: micaSupported ? 0 : 30,
title: !micaSupported
? () {
return DragToMoveArea(
child: Container(
alignment: Alignment.centerLeft,
child: const Text('Kyber Mod Manager'),
),
);
}()
return DragToMoveArea(
child: Container(
alignment: Alignment.centerLeft,
child: const Text('Kyber Mod Manager'),
),
);
}()
: null,
actions: !micaSupported
? SizedBox(
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: const [Spacer(), WindowButtons()],
),
)
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: const [Spacer(), WindowButtons()],
),
)
: null,
),
pane: NavigationPane(
Expand Down

0 comments on commit b489367

Please sign in to comment.