mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Title controls reordering done right. Title song play button created.
This commit is contained in:
@@ -350,6 +350,12 @@ public:
|
||||
return ptr();
|
||||
}
|
||||
|
||||
// Use that instead "= new T(parent, ...)"
|
||||
template <typename Parent, typename... Args>
|
||||
void create(Parent &&parent, Args&&... args) {
|
||||
delete _widget;
|
||||
_widget = new T(std_::forward<Parent>(parent), std_::forward<Args>(args)...);
|
||||
}
|
||||
void destroy() {
|
||||
if (_widget) {
|
||||
delete _widget;
|
||||
|
Reference in New Issue
Block a user