Changeset - 365cbd130bf2
[Not reviewed]
Tess Snider (Malkyne) - 3 years ago 2021-07-26 09:20:37
this@malkyne.org
Now correctly clearing buffer reagent selections when doing a test Clear.
Also, marking inert now immediately saves, because a verification step
is not necessary or useful, in this case.
3 files changed with 10 insertions and 5 deletions:
0 comments (0 inline, 0 general)
Models/ReactionTest.cs
Show inline comments
...
 
@@ -281,2 +281,3 @@ namespace DesertPaintCodex.Models
 
            State = TestState.GoodResult;
 
            SaveReaction();
 
        }
...
 
@@ -293,2 +294,5 @@ namespace DesertPaintCodex.Models
 
            }
 

	
 
            BufferReagentFirst = null;
 
            BufferReagentLast = null;
 
            
...
 
@@ -298,2 +302,3 @@ namespace DesertPaintCodex.Models
 
            State = TestState.Untested;
 
            
 
            UpdateRecipe();
ViewModels/ExperimentLogViewModel.cs
Show inline comments
...
 
@@ -63,2 +63,3 @@ namespace DesertPaintCodex.ViewModels
 
            TestView.FinalizeTestResults.Subscribe(_ => OnReactionResults());
 
            TestView.MarkInert.Subscribe(_ => OnSaveReaction());
 
        }
ViewModels/ReactionTestViewModel.cs
Show inline comments
...
 
@@ -48,2 +48,3 @@ namespace DesertPaintCodex.ViewModels
 
            ClearReaction = ReactiveCommand.Create(() => ReactionTest.ClearReaction());
 
            MarkInert = ReactiveCommand.Create(() => ReactionTest.MarkInert());
 
            FinalizeTestResults = ReactiveCommand.Create(Test);
...
 
@@ -111,7 +112,2 @@ namespace DesertPaintCodex.ViewModels
 

	
 
        public void MarkInert()
 
        {
 
            ReactionTest.MarkInert();
 
        }
 

	
 
        public void CancelScan()
...
 
@@ -150,2 +146,5 @@ namespace DesertPaintCodex.ViewModels
 
        public ReactiveCommand<Unit, Unit> SaveReaction { get; }
 
        
 
        public ReactiveCommand<Unit, Unit> MarkInert { get; }
 
        
 
        public ReactiveCommand<Unit, Unit> FinalizeTestResults { get; }
0 comments (0 inline, 0 general)