Skip to content

Commit

Permalink
save checkUpdates option, General sheet (stevencohn#1589)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn authored and weissm committed Sep 28, 2024
1 parent 1239d8c commit eb4af83
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 eb4af83

Please sign in to comment.