mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Remove base::Observable / base::Variable.
This commit is contained in:
@@ -85,11 +85,6 @@ Sandbox::Sandbox(
|
||||
char **argv)
|
||||
: QApplication(argc, argv)
|
||||
, _mainThreadId(QThread::currentThreadId())
|
||||
, _handleObservables([=] {
|
||||
if (_application) {
|
||||
_application->call_handleObservables();
|
||||
}
|
||||
})
|
||||
, _launcher(launcher) {
|
||||
setQuitOnLastWindowClosed(false);
|
||||
}
|
||||
@@ -201,10 +196,6 @@ void Sandbox::launchApplication() {
|
||||
}
|
||||
setupScreenScale();
|
||||
|
||||
base::InitObservables([] {
|
||||
Instance()._handleObservables.call();
|
||||
});
|
||||
|
||||
_application = std::make_unique<Application>(_launcher);
|
||||
|
||||
// Ideally this should go to constructor.
|
||||
|
Reference in New Issue
Block a user