Skip to content

Commit

Permalink
save checkUpdates option, General sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn committed Sep 26, 2024
1 parent a22ed86 commit 3d622dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 23 deletions.
7 changes: 3 additions & 4 deletions OneMore/Commands/Settings/GeneralSheet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,9 @@ public override bool CollectSettings()
var updated = settings.Add("language", lang);

// does not require a restart
if (checkUpdatesBox.Checked)
settings.Add("checkUpdates", true);
else
settings.Remove("checkUpdates");
save = checkUpdatesBox.Checked
? settings.Add("checkUpdates", true) || save
: settings.Remove("checkUpdates") || save;

// requires a restart
updated = verboseBox.Checked
Expand Down
3 changes: 0 additions & 3 deletions OneMore/Commands/Tables/Formulas/Calculator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,6 @@ public void SetVariable(string name, double value)
/// <summary>
/// Parse and evaluate a mathematical expression.
/// </summary>
/// <remarks>
/// This method does not evaluate variable declarations.
/// </remarks>
/// <param name="expression">The math expression to parse and evaluate.</param>
/// <returns>Returns the result of executing the given math expression.</returns>
public double Compute(string expression)
Expand Down
16 changes: 0 additions & 16 deletions OneMore/Commands/Tables/Formulas/FormulaEnums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,4 @@ internal enum FormulaFunction
Variance,
StandardDeviation
}


internal enum FunctionStatus
{
OK,
UndefinedFunction,
WrongParameterCount
}


internal enum SymbolStatus
{
OK,
None,
UndefinedSymbol
}
}

0 comments on commit 3d622dc

Please sign in to comment.