allista / WakatimeBlender

This is a plugin for the Blender that sends statistics to the Wakatime time tracking service.
MIT License
28 stars 16 forks source link

API Key dialog missing input field #14

Closed alanhamlett closed 2 years ago

alanhamlett commented 2 years ago

Something must have changed in Blender version 2.93.0 and newer, because the dialog input field for entering api key is now missing:

Screen Shot 2021-10-30 at 12 16 07 PM

In Blender version 2.92.0 it looks correct:

Screen Shot 2021-10-30 at 12 14 38 PM

I'm not sure if this can be fixed by using bpy.types.Operator differently or if it's just a bug introduced into Blender 2.93.0.

williamchange commented 2 years ago

I was able to fix the issue by changing the line from:

api_key = StringProperty(name="API Key")

to the following:

api_key: StringProperty(name="API Key")

Which then the dialog input field shows up correctly:

Blender 2.93.5 LTS:

image

I made a PR(https://github.com/allista/WakatimeBlender/pull/10) last year adding a preference field as a workaround as the user wasn't able to bring up the dialog, though for now it looks like this might be the only change needed to make the text field to work properly for 2.93 or above

MasterKrepta commented 2 years ago

Has anyone had success modifying this to work in 3.0?

I have not been able to get it working yet myself.

allista commented 2 years ago

I'm working on the v2.0 for blender 2.93, which will fix all the current issues.

Once I'm done, I'll check its compatibility with blender 3.0