Skip to content

Commit e14af01

Browse files
committed
Make attachment properties readonly
1 parent c22c779 commit e14af01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sentry_attachment.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
void SentryAttachment::_bind_methods() {
1414
ClassDB::bind_static_method("SentryAttachment", D_METHOD("create_with_path", "path", "content_type"), &SentryAttachment::create_with_path, DEFVAL(""));
1515

16-
BIND_PROPERTY(SentryAttachment, PropertyInfo(Variant::STRING, "file_path"), set_file_path, get_file_path);
17-
BIND_PROPERTY(SentryAttachment, PropertyInfo(Variant::STRING, "content_type"), set_content_type, get_content_type);
16+
BIND_PROPERTY_READONLY(SentryAttachment, PropertyInfo(Variant::STRING, "file_path"), get_file_path);
17+
BIND_PROPERTY_READONLY(SentryAttachment, PropertyInfo(Variant::STRING, "content_type"), get_content_type);
1818
}
1919

2020
Ref<SentryAttachment> SentryAttachment::create_with_path(const String &p_path, const String &p_content_type) {

0 commit comments

Comments
 (0)