mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user