mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 12:42:34 +00:00
[TestFlight] v4.0.0+400001 (#240)
NEW - [Tautulli] View Activity - [Tautulli] View activity details - [Tautulli] View list of users - [Tautulli] Ability to backup configuration & database - [Tautulli] Ability to delete cache & image cache - [Drawer] Ability to set the initial expanded state of categories (automation, clients, & monitoring) TWEAKS - [UI/Loader] New loading indicator - [Home/Calendar] Separate calendar view type into its own preference - [Home/Calendar] Show no modules enabled message when there are no automation modules enabled, not just no modules overall FIXES - [Profiles] Safeguarded fetching of enabled module
This commit is contained in:
@@ -590,7 +590,7 @@ class SettingsDialogs {
|
||||
|
||||
await LSDialog.dialog(
|
||||
context: context,
|
||||
title: 'Starting Day of Week',
|
||||
title: 'Starting Day',
|
||||
content: List.generate(
|
||||
CalendarStartingDay.values.length,
|
||||
(index) => LSDialog.tile(
|
||||
@@ -612,7 +612,6 @@ class SettingsDialogs {
|
||||
void _setValues(bool flag, CalendarStartingSize startingSize) {
|
||||
_flag = flag;
|
||||
_startingSize = startingSize;
|
||||
Provider.of<HomeModel>(context, listen: false).showCalendarSchedule = _startingSize == CalendarStartingSize.SCHEDULE;
|
||||
Navigator.of(context).pop();
|
||||
}
|
||||
|
||||
@@ -633,6 +632,33 @@ class SettingsDialogs {
|
||||
return [_flag, _startingSize];
|
||||
}
|
||||
|
||||
static Future<List<dynamic>> editCalendarStartingType(BuildContext context) async {
|
||||
bool _flag = false;
|
||||
CalendarStartingType _startingType;
|
||||
|
||||
void _setValues(bool flag, CalendarStartingType startingType) {
|
||||
_flag = flag;
|
||||
_startingType = startingType;
|
||||
Navigator.of(context).pop();
|
||||
}
|
||||
|
||||
await LSDialog.dialog(
|
||||
context: context,
|
||||
title: 'Starting Type',
|
||||
content: List.generate(
|
||||
CalendarStartingType.values.length,
|
||||
(index) => LSDialog.tile(
|
||||
icon: CalendarStartingType.values[index].icon,
|
||||
iconColor: LSColors.list(index),
|
||||
text: CalendarStartingType.values[index].name,
|
||||
onTap: () => _setValues(true, CalendarStartingType.values[index]),
|
||||
),
|
||||
),
|
||||
contentPadding: LSDialog.listDialogContentPadding(),
|
||||
);
|
||||
return [_flag, _startingType];
|
||||
}
|
||||
|
||||
static Future<List<dynamic>> editBroadcastAddress(BuildContext context, String prefill) async {
|
||||
bool _flag = false;
|
||||
final _formKey = GlobalKey<FormState>();
|
||||
|
||||
Reference in New Issue
Block a user