mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-22 19:50:59 +00:00
generator: fixed writeable and readable detection
This commit is contained in:
parent
c53147c1c4
commit
edde96c5be
|
@ -42,13 +42,13 @@ namespace GtkSharp.Generation {
|
|||
|
||||
protected virtual bool Readable {
|
||||
get {
|
||||
return elem.GetAttribute ("readable") != "false";
|
||||
return elem.HasAttribute ("readable") && elem.GetAttributeAsBoolean ("readable");
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual bool Writable {
|
||||
get {
|
||||
return elem.GetAttribute ("writeable") != "false";
|
||||
return elem.HasAttribute ("writeable") && elem.GetAttributeAsBoolean ("writeable");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue