Commit 48ea05d7 authored by Francesco Carraro's avatar Francesco Carraro
Browse files

fixed issue in changing unit of measure for wavelengths

parent 3636b961
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
	<updates>
		<fixes>
			<fix>Fixed crash when user tries to zoom a chart region</fix>
			<fix>Fixed issue in changing unit of measure for wavelengths</fix>
		</fixes>
		<addings>
			<adding>Added way to classify sample as meteor by assigning it a class</adding>
+3 −1
Original line number Diff line number Diff line
@@ -666,7 +666,9 @@ namespace INAF.Apps.Uwp.SLabDataManager.ViewModels
            /* check app version and, if an update is found, show the logbook */
            var appVersionUpdateHelper = serviceProvider.GetRequiredService<AppVersionUpdateHelper>();
            (bool isUpdate, bool isFirstInstall) versionCheckResult = appVersionUpdateHelper.init();
            if (versionCheckResult.isUpdate)

            /* show logbook only for updates. it is not showed when app is opened for the 1st time */
            if (versionCheckResult.isUpdate && !versionCheckResult.isFirstInstall)
            {
                var logBookFileReader = serviceProvider.GetRequiredService<LogbookFileReader>();
                await logBookFileReader.readLogbookFileAsync().ConfigureAwait(true);
+5 −2
Original line number Diff line number Diff line
@@ -351,9 +351,12 @@ namespace INAF.Apps.Uwp.SLabDataManager.ViewModels.UserControlViewModels
        private void addSeparatorWavelengthEventListener(WavelengthModel wavelength)
        {
            wavelength.PropertyChanged += (s, e) =>
            {
                if (e.PropertyName.Equals(nameof(WavelengthModel.MeasureUnit))) // avoid saving several times the same info
                {
                    WavelengthModel wavelengthModel = s as WavelengthModel;
                    saveWavelengthModel(wavelength.Index, wavelengthModel.CurrentValue, wavelengthModel.SemiRange, wavelengthModel.StepValue, wavelengthModel.MeasureUnit);
                }
            };
        }