From 7414aea850c2a6430008af043ec7e4215c938628 Mon Sep 17 00:00:00 2001
From: Morilli <35152647+Morilli@users.noreply.github.com>
Date: Thu, 27 Jun 2024 01:11:24 +0200
Subject: [PATCH] Fix InputRoll DefaultValue not matching initialized value
---
.../CustomControls/InputRoll/InputRoll.cs | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs b/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs
index 950d1de214..86f99c4600 100644
--- a/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs
+++ b/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs
@@ -82,12 +82,14 @@ namespace BizHawk.Client.EmuHawk
/// Gets or sets a value indicating whether or not the control will respond to right-click events with a context menu
///
[Category("Behavior")]
+ [DefaultValue(true)]
public bool AllowRightClickSelection { get; set; } = true;
///
/// Gets or sets a value indicating whether or not Home and End will navigate to the beginning or end of the list
///
[Category("Behavior")]
+ [DefaultValue(true)]
public bool AllowMassNavigationShortcuts { get; set; } = true;
[Category("Behavior")]
@@ -208,14 +210,14 @@ namespace BizHawk.Client.EmuHawk
///
[DefaultValue(3)]
[Category("Behavior")]
- public int CellWidthPadding { get; set; }
+ public int CellWidthPadding { get; set; } = 3;
///
/// Gets or sets the amount of top and bottom padding on the text inside a cell
///
[DefaultValue(1)]
[Category("Behavior")]
- public int CellHeightPadding { get; set; }
+ public int CellHeightPadding { get; set; } = 1;
///
/// Gets or sets a value indicating whether grid lines are displayed around cells
@@ -381,7 +383,7 @@ namespace BizHawk.Client.EmuHawk
/// Gets or sets a value indicating whether pressing page up/down will cause
/// the current selection to change
///
- [DefaultValue(false)]
+ [DefaultValue(true)]
[Category("Behavior")]
public bool ChangeSelectionWhenPaging { get; set; } = true;