mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 09:41:41 -05:00
parent
4e7946d03e
commit
3779ad46ca
3 changed files with 10 additions and 3 deletions
|
@ -27,12 +27,16 @@ Integration &Integration::Instance() {
|
|||
return *IntegrationInstance;
|
||||
}
|
||||
|
||||
bool Integration::Exists() {
|
||||
return (IntegrationInstance != nullptr);
|
||||
}
|
||||
|
||||
void Integration::textActionsUpdated() {
|
||||
}
|
||||
|
||||
void Integration::activationFromTopPanel() {
|
||||
void Integration::activationFromTopPanel() {
|
||||
}
|
||||
|
||||
|
||||
std::shared_ptr<ClickHandler> Integration::createLinkHandler(
|
||||
EntityType type,
|
||||
const QString &text,
|
||||
|
|
|
@ -28,6 +28,7 @@ class Integration {
|
|||
public:
|
||||
static void Set(not_null<Integration*> instance);
|
||||
static Integration &Instance();
|
||||
static bool Exists();
|
||||
|
||||
virtual void postponeCall(FnMut<void()> &&callable) = 0;
|
||||
virtual void registerLeaveSubscription(not_null<QWidget*> widget) = 0;
|
||||
|
|
|
@ -12,7 +12,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
namespace Ui {
|
||||
|
||||
void WriteLogEntry(const QString &message) {
|
||||
Integration::Instance().writeLogEntry(message);
|
||||
if (Integration::Exists()) {
|
||||
Integration::Instance().writeLogEntry(message);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Ui
|
||||
|
|
Loading…
Add table
Reference in a new issue