mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Theme preview ready.
Also style::color is now copyable, constructed only inside a palette. Also macOS setup new background ready.
This commit is contained in:
@@ -535,7 +535,18 @@ void WorkingDirReady() {
|
||||
}
|
||||
}
|
||||
|
||||
object_ptr<SingleDelayedCall> MainThreadTaskHandler = { nullptr };
|
||||
|
||||
void MainThreadTaskAdded() {
|
||||
if (!started()) {
|
||||
return;
|
||||
}
|
||||
|
||||
MainThreadTaskHandler->call();
|
||||
}
|
||||
|
||||
void start() {
|
||||
MainThreadTaskHandler.create(QCoreApplication::instance(), "onMainThreadTask");
|
||||
SandboxData = new internal::Data();
|
||||
|
||||
SandboxData->LangSystemISO = psCurrentLanguage();
|
||||
@@ -556,6 +567,7 @@ bool started() {
|
||||
void finish() {
|
||||
delete SandboxData;
|
||||
SandboxData = nullptr;
|
||||
MainThreadTaskHandler.destroy();
|
||||
}
|
||||
|
||||
uint64 UserTag() {
|
||||
|
Reference in New Issue
Block a user