Skip to content

Commit

Permalink
When the coin column is read-only, don't show the drop-down
Browse files Browse the repository at this point in the history
  • Loading branch information
nwoolls committed Aug 16, 2013
1 parent d41ae9b commit ae4b38f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MultiMiner.Win/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@ private void LoadSettings()
engineConfiguration.LoadStrategyConfiguration();

coinColumn.ReadOnly = engineConfiguration.StrategyConfiguration.MineProfitableCoins;
coinColumn.DisplayStyle = coinColumn.ReadOnly ? DataGridViewComboBoxDisplayStyle.Nothing : DataGridViewComboBoxDisplayStyle.DropDownButton;

RefreshStrategiesLabel();
RefreshStrategiesCountdown();

Expand Down Expand Up @@ -1151,7 +1153,10 @@ private void ConfigureStrategies()
engineConfiguration.SaveStrategyConfiguration();
applicationConfiguration.SaveApplicationConfiguration();
SetupCoinStatsTimer();

coinColumn.ReadOnly = engineConfiguration.StrategyConfiguration.MineProfitableCoins;
coinColumn.DisplayStyle = coinColumn.ReadOnly ? DataGridViewComboBoxDisplayStyle.Nothing : DataGridViewComboBoxDisplayStyle.DropDownButton;

RefreshStrategiesLabel();
LoadGridValuesFromCoinStats();
UpdateMiningButtons();
Expand Down

0 comments on commit ae4b38f

Please sign in to comment.