Add love button
This commit is contained in:
@@ -81,6 +81,7 @@ void ScrobblerSettingsPage::Load() {
|
||||
|
||||
ui_->checkbox_enable->setChecked(scrobbler_->IsEnabled());
|
||||
ui_->checkbox_scrobble_button->setChecked(scrobbler_->ScrobbleButton());
|
||||
ui_->checkbox_love_button->setChecked(scrobbler_->LoveButton());
|
||||
ui_->checkbox_offline->setChecked(scrobbler_->IsOffline());
|
||||
ui_->spinbox_submit->setValue(scrobbler_->SubmitDelay());
|
||||
|
||||
@@ -104,6 +105,7 @@ void ScrobblerSettingsPage::Save() {
|
||||
s.beginGroup(kSettingsGroup);
|
||||
s.setValue("enabled", ui_->checkbox_enable->isChecked());
|
||||
s.setValue("scrobble_button", ui_->checkbox_scrobble_button->isChecked());
|
||||
s.setValue("love_button", ui_->checkbox_love_button->isChecked());
|
||||
s.setValue("offline", ui_->checkbox_offline->isChecked());
|
||||
s.setValue("submit", ui_->spinbox_submit->value());
|
||||
s.endGroup();
|
||||
|
||||
@@ -51,6 +51,13 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkbox_love_button">
|
||||
<property name="text">
|
||||
<string>Show love button</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_submit">
|
||||
<item>
|
||||
|
||||
Reference in New Issue
Block a user