Opticos / OpenInWSL-Source

The actual code for OpenInWSL. And some prebuilt releases.
https://opticos.github.io/openinwsl
Other
101 stars 16 forks source link

unable to add new association #3

Closed qualname closed 3 years ago

qualname commented 3 years ago

Hey, I'm unable to save new associations in the Association Editor window.

Observed behaviour:

After going thru the following steps:

The logs:

2021-07-19 15:09:29,144 - OpenInWsl 1.3 store - ERROR - cannot save edited assoc
Traceback (most recent call last):
    File "main.py", line 1015, in saver
AttributeError: 'Label' object has no attribute 'get'

Potential issue:

In the source machine_chooser's type is different depending on how many installed linux instances there are (one or more). Either tkinter.Label or tkinter.Combobox. The 2 classes provide different interfaces. Some functions are not supported by tkinter.Label.

Pololot64 commented 3 years ago

Thanks for the report! Doing a quick fix and will have an update rolled out sometime soon. In the meantime, you can create associations directly in the config file. Congrats on finding the first issue!

Pololot64 commented 3 years ago

Fixed! Will repackage soon

qualname commented 3 years ago

Thanks for getting on it so quickly! :)

Pololot64 commented 3 years ago

:)

Pololot64 commented 3 years ago

I submitted the update to the store today. It should be out tomorrow.

Pololot64 commented 3 years ago

The fix release is out