1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-17 05:15:21 +03:00

Fixed incorrect use of callback for control sticks window.

This commit is contained in:
Michael Keller 2021-06-28 14:58:04 +12:00
parent 5fb3007a17
commit 6b381ff4e1

View file

@ -506,7 +506,9 @@ TABS.receiver.initialize = function (callback) {
}
};
windowWatcherUtil.passValue(createdWindow, 'darkTheme', DarkTheme.isDarkThemeEnabled(DarkTheme.configEnabled));
DarkTheme.isDarkThemeEnabled(function(isEnabled) {
windowWatcherUtil.passValue(createdWindow, 'darkTheme', isEnabled);
});
});
});