Fixed GetBool(string key) always using false as default

This commit is contained in:
n00mkrad
2021-08-04 18:10:29 +02:00
parent 700462b74c
commit 67ec8dcf99
2 changed files with 3 additions and 5 deletions

View File

@@ -190,7 +190,7 @@
this.moveDownBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.moveDownBtn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.moveDownBtn.ForeColor = System.Drawing.Color.White;
this.moveDownBtn.Location = new System.Drawing.Point(637, 446);
this.moveDownBtn.Location = new System.Drawing.Point(636, 445);
this.moveDownBtn.Margin = new System.Windows.Forms.Padding(0);
this.moveDownBtn.Name = "moveDownBtn";
this.moveDownBtn.Size = new System.Drawing.Size(35, 35);
@@ -207,7 +207,7 @@
this.moveUpBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.moveUpBtn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.moveUpBtn.ForeColor = System.Drawing.Color.White;
this.moveUpBtn.Location = new System.Drawing.Point(598, 446);
this.moveUpBtn.Location = new System.Drawing.Point(597, 445);
this.moveUpBtn.Margin = new System.Windows.Forms.Padding(0);
this.moveUpBtn.Name = "moveUpBtn";
this.moveUpBtn.Size = new System.Drawing.Size(35, 35);

View File

@@ -146,9 +146,7 @@ namespace Flowframes.IO
public static bool GetBool(string key)
{
WriteIfDoesntExist(key.ToString(), false.ToString());
string str = Get(key, Type.Bool);
return str.GetBool();
return Get(key, Type.Bool).GetBool();
}
public static bool GetBool(string key, bool defaultVal)