Make scrobble submit delay configurable
This commit is contained in:
@@ -82,6 +82,7 @@ void ScrobblerSettingsPage::Load() {
|
||||
ui_->checkbox_enable->setChecked(scrobbler_->IsEnabled());
|
||||
ui_->checkbox_scrobble_button->setChecked(scrobbler_->ScrobbleButton());
|
||||
ui_->checkbox_offline->setChecked(scrobbler_->IsOffline());
|
||||
ui_->spinbox_submit->setValue(scrobbler_->SubmitDelay());
|
||||
|
||||
ui_->checkbox_lastfm_enable->setChecked(lastfmscrobbler_->IsEnabled());
|
||||
LastFM_RefreshControls(lastfmscrobbler_->IsAuthenticated());
|
||||
@@ -103,6 +104,7 @@ void ScrobblerSettingsPage::Save() {
|
||||
s.setValue("enabled", ui_->checkbox_enable->isChecked());
|
||||
s.setValue("scrobble_button", ui_->checkbox_scrobble_button->isChecked());
|
||||
s.setValue("offline", ui_->checkbox_offline->isChecked());
|
||||
s.setValue("submit", ui_->spinbox_submit->value());
|
||||
s.endGroup();
|
||||
|
||||
s.beginGroup(LastFMScrobbler::kSettingsGroup);
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>769</width>
|
||||
<height>611</height>
|
||||
<height>726</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -27,6 +27,16 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_scrobble_info">
|
||||
<property name="text">
|
||||
<string>Songs are scrobbled if they have valid metadata and are longer than 30 seconds, have been playing for at least half its duration or for 4 minutes (whichever occurs earlier).</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkbox_offline">
|
||||
<property name="text">
|
||||
@@ -41,6 +51,50 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_submit">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_submit">
|
||||
<property name="text">
|
||||
<string>Submit scrobbles every</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinbox_submit">
|
||||
<property name="suffix">
|
||||
<string> minutes</string>
|
||||
</property>
|
||||
<property name="prefix">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_submit">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_submit_info">
|
||||
<property name="text">
|
||||
<string>(This is the delay between when a song is scrobbled and when scrobbles are submitted to the server. Settings the time to 0 minutes will submit scrobbles immediately).</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupbox_lastfm">
|
||||
<property name="title">
|
||||
|
||||
Reference in New Issue
Block a user