2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix autostart toggling.

This commit is contained in:
John Preston
2021-11-05 09:52:02 +04:00
parent 5c4b68d632
commit 1ea6224e60
3 changed files with 61 additions and 54 deletions

View File

@@ -562,7 +562,9 @@ bool AutostartSupported() {
void AutostartToggle(bool enabled, Fn<void(bool)> done) {
const auto guard = gsl::finally([&] {
done(enabled);
if (done) {
done(enabled);
}
});
#ifdef __HAIKU__