From 716869599bfabf9dedf673707be9a009dc269d96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 4 Jul 2022 12:20:28 +0200 Subject: [PATCH] python: fix platform.Application.Configuration.title property getter. Discovered this only after generating the docs, the StringView return wasn't handled correctly. The tech debt TODO still stands, I need to create StringView bindings already. --- src/python/magnum/platform/application.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/python/magnum/platform/application.h b/src/python/magnum/platform/application.h index 7c8bf44..ad3ffb7 100644 --- a/src/python/magnum/platform/application.h +++ b/src/python/magnum/platform/application.h @@ -43,8 +43,11 @@ template void application(py::class_ std::string { + return self.title(); + }, [](typename T::Configuration& self, const std::string& title) { self.setTitle(title); }, "Window title")