Zoom values not consistent

Hi !
I’m trying to tinker with the KanvasBuddy plugin to add a zoom slider. While doing so, i noted that Canvas zoom level getter and setter were not consistant.
Doing so, would result in a zoom in :

view = Krita.instance().activeWindow().activeView()
view.canvas().setZoomLevel(view.canvas().zoomLevel())

Moreover, the slider in Krita bottom right display the double of the value shown in the notification (when same aspect as pixel is toggled or a third otherwise).

Does someone knows how to get around this in script or can explain the reason of those values ?

I think the reason is the DPI of the image that influences but only in one way. There are more threads about this topic around.

From what I know you can take a look at the Tela plugin that has that implemented. But I don’t recall enough to say without looking at it again.

Oh thanks ! I misused the search and couldn’t find anything.