WIP: Add iOS version #10

Draft
Deadpikle wants to merge 67 commits from feature/ios into main
4 changed files with 10 additions and 7 deletions
Showing only changes of commit afed4c8438 - Show all commits
+2
View File
@@ -7,8 +7,10 @@
-always save report data (file locations, title, etc.) to internal dir (might already be done?)
-add dropdown to Add Items button to have add items from folder and remove choose working folder option (data always saved internally)
-no more option to save data internally -> ALWAYS save report_data.json internally
-update project title -> should update recently used data
-this sort of works, something is wrong with the upgrade process where the UUID is not brought over properly; need to test and fix (maybe fixed already and my dataset is wrong?)
-make backup of last generated PDF
-iOS-specific (MAUI essentials?)
-Take picture
-Add pic from gallery
+1
View File
@@ -217,6 +217,7 @@ class Settings : ChangeNotifier
}
settings.AllReportInfo = list.OrderBy(x => x.Title).ToList();
settings.WorkingFolderToInternalFolderName = []; // clear this list; it is no longer going to be used
settings.SaveReportJsonDataInInternalDir = true; // this is now always true
settings.SettingsVersion = 2;
settings.SaveSettingsNotAsync(); // saves all data; UUIDs should be in sync if user has toggled settings
}
@@ -115,12 +115,12 @@ class SettingsViewModel: ChangeNotifier
public bool SaveReportJsonDataInInternalDir
{
get => _settings.SaveReportJsonDataInInternalDir;
set
{
_settings.SaveReportJsonDataInInternalDir = value;
NotifyPropertyChanged();
}
get => true; // _settings.SaveReportJsonDataInInternalDir;
//set
//{
// _settings.SaveReportJsonDataInInternalDir = value;
// NotifyPropertyChanged();
//}
}
public List<DateDisplayFormat> DateFormats
+1 -1
View File
@@ -72,7 +72,7 @@
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<CheckBox IsChecked="{Binding SaveReportJsonDataInInternalDir}">Save report data (names, notes, etc.) in MayShow settings directory (saves in working directory by default)</CheckBox>
<!-- <CheckBox IsChecked="{Binding SaveReportJsonDataInInternalDir}">Save report data (names, notes, etc.) in MayShow settings directory (saves in working directory by default)</CheckBox> -->
<Button Command="{Binding OpenSettingsDir}">
<TextBlock>
<Run Text="&#xf07c;"