mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-07-01 08:23:42 -04:00
Export version fixes (#83)
* Add file association for .eop, prompt for install dir * Handle .eop or .aip file passed as arg. * VS2022 version bump * Filter neutron stars and black holes from fast spinning criteria. * Adjustments for new "high value" check * Refactor herald cache * Fix element order and namespaces for voice moods. * Add explicit .Stop() between audio player calls. * Use nullsafe member access instead of skipping * Don't queue up a title that's already queued. * Improve body ordinal handling for explorer speech titles. * Escape strings being inserted into xml * Handle flip-flopping JSON type * Converter for flip-flopping property type * Use the converter * Escape characters *before* we wrap it in xml. * Give Eahlstan his clear button. :D * Exclude all stars from fast rotation check. * Close outstanding popup notifications on exit. * TO DONE * [Herald] Suppress duplicate notification titles for spoken notifications If you have notifications from multiple plugins producing notifications with the same title in quick succession (ie. "Body A 1 e" from both Explorer and BioInsights), the title on successive notifications will not be spoken again to save the breath of our friendly Azure speakers. * Doc update * Remove unintended member hiding * Fix export errors when exporting BioInsights data, cleanup Discovered a couple issues with exporting BioInsights data resulting from using two different types of objects in the data grid; improved error handling as well. Also cleaned up some old-style read all code. * Add read-all on launch setting * Updated framework xml * Improve high-value body description text Co-authored-by: Fred Kuipers <mr.fredk@gmail.com>
This commit is contained in:
@ -27,6 +27,11 @@ namespace Observatory.UI.Views
|
||||
{
|
||||
InitializeComponent();
|
||||
nativePopup = new();
|
||||
|
||||
this.DetachedFromVisualTree += (o, e) =>
|
||||
{
|
||||
nativePopup.CloseAll();
|
||||
};
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
@ -666,7 +671,7 @@ namespace Observatory.UI.Views
|
||||
|
||||
#endregion
|
||||
|
||||
#region Monitor On Launch
|
||||
#region Actions On Launch
|
||||
|
||||
TextBlock startMonitorLabel = new() { Text = "Start monitor on Observatory launch" };
|
||||
CheckBox startMonitorCheckbox = new() { IsChecked = Properties.Core.Default.StartMonitor, Content = startMonitorLabel };
|
||||
@ -683,6 +688,21 @@ namespace Observatory.UI.Views
|
||||
Properties.Core.Default.Save();
|
||||
};
|
||||
|
||||
TextBlock startReadAllLabel = new() { Text = "Read All on Observatory launch" };
|
||||
CheckBox startReadAllCheckbox = new() { IsChecked = Properties.Core.Default.StartReadAll, Content = startReadAllLabel };
|
||||
|
||||
startReadAllCheckbox.Checked += (object sender, RoutedEventArgs e) =>
|
||||
{
|
||||
Properties.Core.Default.StartReadAll = true;
|
||||
Properties.Core.Default.Save();
|
||||
};
|
||||
|
||||
startReadAllCheckbox.Unchecked += (object sender, RoutedEventArgs e) =>
|
||||
{
|
||||
Properties.Core.Default.StartReadAll = false;
|
||||
Properties.Core.Default.Save();
|
||||
};
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
@ -753,6 +773,7 @@ namespace Observatory.UI.Views
|
||||
|
||||
gridManager.AddSetting(primeSystemContexCheckbox);
|
||||
gridManager.AddSetting(startMonitorCheckbox);
|
||||
gridManager.AddSetting(startReadAllCheckbox);
|
||||
gridManager.AddSettingWithLabel(journalPathLabel, journalPath);
|
||||
gridManager.AddSetting(journalBrowse);
|
||||
|
||||
|
@ -81,6 +81,14 @@
|
||||
Content="Export">
|
||||
Export
|
||||
</Button>
|
||||
<Button
|
||||
Name="clear"
|
||||
Margin="10"
|
||||
FontSize="15"
|
||||
Command="{Binding ClearGrid}"
|
||||
Content="Clear">
|
||||
Clear
|
||||
</Button>
|
||||
<Button
|
||||
Name="ToggleMonitor"
|
||||
Margin="10"
|
||||
|
Reference in New Issue
Block a user