Browse code

Rename SoundView::Refresh to SoundView::Update.

The former is already used by wxDialog but with a different signature.

Naram Qashat authored on 2021/04/10 15:57:44
Showing 2 changed files
... ...
@@ -181,7 +181,13 @@ void SoundView::OnIdle(wxIdleEvent &evt)
181 181
 	evt.RequestMore();
182 182
 }
183 183
 
184
-void SoundView::Refresh()
184
+void SoundView::SyncToConfig()
185
+{
186
+	for (int i = 0; i < 16; ++i)
187
+		this->channelData[i].muteCheckBox->SetValue(this->config->mutes[i]);
188
+}
189
+
190
+void SoundView::Update()
185 191
 {
186 192
 	auto ncsfPlayer = this->player;
187 193
 	std::string buf;
... ...
@@ -270,9 +276,3 @@ void SoundView::Refresh()
270 276
 		chnData.lastState = chn.state;
271 277
 	}
272 278
 }
273
-
274
-void SoundView::SyncToConfig()
275
-{
276
-	for (int i = 0; i < 16; ++i)
277
-		this->channelData[i].muteCheckBox->SetValue(this->config->mutes[i]);
278
-}
... ...
@@ -55,8 +55,8 @@ class SoundView : public wxDialog
55 55
 public:
56 56
 	SoundView(wxWindow *parent, XSFConfig_NCSF *ncsfConfig, XSFPlayer_NCSF *ncsfPlayer);
57 57
 	void OnIdle(wxIdleEvent &evt);
58
-	void Refresh();
59 58
 	void SyncToConfig();
59
+	void Update();
60 60
 
61 61
 	XSFConfig_NCSF *config;
62 62
 	XSFPlayer_NCSF *player;