1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-08 22:26:51 +02:00

button text

This commit is contained in:
Laserlicht
2025-01-01 19:21:20 +01:00
parent 0a42ba8f0a
commit 9aa8ac1e4f

View File

@@ -219,6 +219,8 @@ void CSettingsView::loadToggleButtonSettings()
setCheckbuttonState(ui->buttonRelativeCursorMode, settings["general"]["userRelativePointer"].Bool());
setCheckbuttonState(ui->buttonHapticFeedback, settings["general"]["hapticFeedback"].Bool());
setCheckbuttonState(ui->buttonHandleBackRightMouseButton, settings["input"]["handleBackRightMouseButton"].Bool());
std::string cursorType = settings["video"]["cursor"].String();
int cursorTypeIndex = vstd::find_pos(cursorTypesList, cursorType);
setCheckbuttonState(ui->buttonCursorType, cursorTypeIndex);
@@ -851,5 +853,6 @@ void CSettingsView::on_buttonHandleBackRightMouseButton_toggled(bool checked)
{
Settings node = settings.write["input"]["handleBackRightMouseButton"];
node->Bool() = checked;
updateCheckbuttonText(ui->buttonHandleBackRightMouseButton);
}