Initial Zoom Scale Factor
-
How can I set an initial value to SCALE_FACTOR (zoom) from GeneralSettings.xml? I would like the initial value to be 0.75 (when the user opens the plugin only for the first time).
I think I had read in some post that it's not recommend shipping the GeneralSettings.xml file modified in the installer.
-
@bendurso
Settings.setZoomLevel()
-
@d-healey Yes, but how do I set the value when opening the plugin for the first time? If I put it in "in init" I understand that it will be modified every time the plugin is opened.
-
@bendurso Hmm I think for that you'd need to write a value to a file the first time the plugin is opened. And every time the plugin is opened after that you check if the file exists, if it does you know that it's not the first time it's been opened so you don't set the scaling.
There might be a simpler way but that's the first way that came to my mind.
-
@d-healey Nice, thanks. It also occurred to me that I can check if the zoom level is equal to 1.0, and if it is (inital value), I reduce it to 0.75
I'm using draggable zoom with decimal values, so the chances of the user choosing exactly 1.0 are slim.
If anyone has another idea I'll listen :)
-
@bendurso said in Initial Zoom Scale Factor:
If anyone has another idea I'll listen :)
Currently you are making 0.75 your 1.0, instead build your interface to work at 1.0 by default.
-
@d-healey hehe yes, that would be better. But it's a bit late for this project :(