mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Allow adding Settings::Section-s without changing Type.
This commit is contained in:
@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
|
||||
#include "settings/settings_common.h"
|
||||
#include "settings/settings_chat.h"
|
||||
#include "settings/settings_experimental.h"
|
||||
#include "ui/wrap/vertical_layout.h"
|
||||
#include "ui/wrap/slide_wrap.h"
|
||||
#include "ui/widgets/labels.h"
|
||||
@@ -133,7 +134,7 @@ void SetupUpdate(
|
||||
experimental->toggleOn(install->toggledValue());
|
||||
}
|
||||
experimental->entity()->setClickedCallback([=] {
|
||||
showOther(Type::Experimental);
|
||||
showOther(Experimental::Id());
|
||||
});
|
||||
}
|
||||
|
||||
@@ -740,6 +741,10 @@ Advanced::Advanced(
|
||||
setupContent(controller);
|
||||
}
|
||||
|
||||
rpl::producer<QString> Advanced::Title() {
|
||||
return tr::lng_settings_advanced();
|
||||
}
|
||||
|
||||
rpl::producer<Type> Advanced::sectionShowOther() {
|
||||
return _showOther.events();
|
||||
}
|
||||
|
Reference in New Issue
Block a user