mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix autostart toggling.
This commit is contained in:
@@ -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__
|
||||
|
Reference in New Issue
Block a user