Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #23 from UniversityRadioYork/fix-auto-advance-tooltip
Browse files Browse the repository at this point in the history
Fix auto advance tooltip option
  • Loading branch information
LordAro authored Jan 7, 2019
2 parents 51348a7 + bcc7510 commit 4364438
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BAPSPresenter/BAPSPresenterMainEvents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ void BAPSPresenterMain::ChannelListClear_Click(System::Object^ sender, System::E
System::Void BAPSPresenterMain::trackListContextMenuStrip_Opening(System::Object^ sender, System::ComponentModel::CancelEventArgs^ e)
{
TrackList^ tl = safe_cast<TrackList^>(trackListContextMenuStrip->SourceControl);
int testValue = ConfigCache::getValueInt("Automatically advance", tl->Channel);
bool shouldCheck = (testValue == ConfigCache::findChoiceIndexFor("Automatically advance", "Yes"));
int testValue = ConfigCache::getValueInt("Auto Advance", tl->Channel);
bool shouldCheck = (testValue == ConfigCache::findChoiceIndexFor("Auto Advance", "Yes"));
automaticAdvanceToolStripMenuItem->Checked = shouldCheck;
testValue = ConfigCache::getValueInt("Play on load", tl->Channel);
shouldCheck = (testValue == ConfigCache::findChoiceIndexFor("Play on load", "Yes"));
Expand All @@ -314,7 +314,7 @@ System::Void BAPSPresenterMain::trackListContextMenuStrip_ItemClicked(System::Ob
Command cmd = BAPSNET_CONFIG | BAPSNET_SETCONFIGVALUE | BAPSNET_CONFIG_USEVALUEMASK | tl->Channel;
if (e->ClickedItem == automaticAdvanceToolStripMenuItem)
{
OptionCacheInfo^ oci = ConfigCache::getOption("Automatically advance");
OptionCacheInfo^ oci = ConfigCache::getOption("Auto Advance");
System::String^ newSetting = "Yes";
if (automaticAdvanceToolStripMenuItem->Checked)
{
Expand Down

0 comments on commit 4364438

Please sign in to comment.