mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-15 08:40:34 +03:00
Using a Tk.DoubleVar() with a locale where a comma is used as the decimals separator leads to internal tk code recording values with the comma but then other tk code not accepting that back, so it always thinks the value is zero and the scale slider can't be moved. Ref: https://stackoverflow.com/questions/45289237/tkinter-scale-slider-with-float-values-doesnt-work-with-locale-of-language-that * Change to storing as a REG_DWORD under 'ui_scale' not 'ui_scaling'. * Change all the code, except the call to *set* the tk scaling to use an integer, with 100 = 100%, i.e. equivalent to the old 1.0. * Update strings slightly, so translations will need updating too. NB: The theme.default_ui_scale value for plugin authors to query is still the float that tk returns.