-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable setappimage if winebincode != AppImage #56
Conversation
The general logic looks good. I just started testing with the Tk dialog and ran into this:
It looks like the list |
Okay. That should be an easy fix; I'll mod find_appimage_files. If there is a need for strings, I'd rather run a tostring() function. |
e5c3254
to
0e3dea1
Compare
I was running my system's default Python version, 3.11, and I hit an error in code. I was about to code around this until I checked docs and saw it was a 3.12 feature added. While I don't plan to do a full-blown version check for every feature, I added this for clarity's sake since the CLI reported an unexpected keyword error. Thus I added this commit: 229bcb8. This code could easily be added as a top-level function like |
2da53b2
to
1649afc
Compare
So it apparently doesn't work to pluck an item by index from the
or:
I tested the speed of both of these, just out of curiosity. Here's what I found: >>> import timeit
>>> timeit.timeit('list(map(int, "30.2.001".split(".")))', number=10000)
0.014728516049217433
>>> timeit.timeit('[int(p) for p in "30.2.001".split(".")]', number=10000)
0.011726382013875991 So the list comprehension option seems to be faster, in case you ever want to do this on a larger number of items. |
Ah, I had simplified that code from an if/elif series/case statement to that. Sounds good. Will test a change and push. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing a clean install for TUI and GUI both succeed. This looks good to me.
6b13fcd
to
fee433d
Compare
This is a partial fix for #5. It adds conditional logic to the CLI, TUI, and GUI that either removes or disables a function if the config file states that the Logos install was created with something other than an AppImage.
It also creates a new GUI tooltip function. This is applied to the set appimage button, so that when the user hovers over it with his mouse, it will tell him why the button is disabled.