mirror of https://github.com/procxx/kepka.git
parent
4e7946d03e
commit
3779ad46ca
|
@ -27,12 +27,16 @@ Integration &Integration::Instance() {
|
||||||
return *IntegrationInstance;
|
return *IntegrationInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Integration::Exists() {
|
||||||
|
return (IntegrationInstance != nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
void Integration::textActionsUpdated() {
|
void Integration::textActionsUpdated() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Integration::activationFromTopPanel() {
|
void Integration::activationFromTopPanel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<ClickHandler> Integration::createLinkHandler(
|
std::shared_ptr<ClickHandler> Integration::createLinkHandler(
|
||||||
EntityType type,
|
EntityType type,
|
||||||
const QString &text,
|
const QString &text,
|
||||||
|
|
|
@ -28,6 +28,7 @@ class Integration {
|
||||||
public:
|
public:
|
||||||
static void Set(not_null<Integration*> instance);
|
static void Set(not_null<Integration*> instance);
|
||||||
static Integration &Instance();
|
static Integration &Instance();
|
||||||
|
static bool Exists();
|
||||||
|
|
||||||
virtual void postponeCall(FnMut<void()> &&callable) = 0;
|
virtual void postponeCall(FnMut<void()> &&callable) = 0;
|
||||||
virtual void registerLeaveSubscription(not_null<QWidget*> widget) = 0;
|
virtual void registerLeaveSubscription(not_null<QWidget*> widget) = 0;
|
||||||
|
|
|
@ -12,7 +12,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
|
|
||||||
void WriteLogEntry(const QString &message) {
|
void WriteLogEntry(const QString &message) {
|
||||||
Integration::Instance().writeLogEntry(message);
|
if (Integration::Exists()) {
|
||||||
|
Integration::Instance().writeLogEntry(message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Ui
|
} // namespace Ui
|
||||||
|
|
Loading…
Reference in New Issue