Skip to content
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

Timelapse download and delete buttons are misaligned when there are only two of them resulting in deletion of files by accident #5736

Open
1 of 3 tasks
sneakyjoeru opened this issue Jun 17, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@sneakyjoeru
Copy link

sneakyjoeru commented Jun 17, 2024

Is there an existing issue for this problem?

  • I have searched the existing issues

OrcaSlicer Version

2.1.0-beta

Operating System (OS)

Linux, Windows

OS Version

windows 11, kubuntu 22.04

Additional system information

No response

Printer

Bambulab X1C

How to reproduce

Screenshot_20240617_122206
Screenshot_20240617_122148

Have timelapse. Try to dowload. If you press left part of the button it will delete instead. Looks like you can press to the right of a button on a blank area and it will download still

Actual results

Misaligned button, that deletes file if you're not paying attention

Expected results

Downloading of a file.

Project file & Debug log uploads

no need, as reproduced on 2 separate OS

Checklist of files to include

  • Log file
  • Project file

Anything else?

Please fix it - it's very annoying.

@sneakyjoeru sneakyjoeru added the bug Something isn't working label Jun 17, 2024
@Chewieez
Copy link

Chewieez commented Jul 2, 2024

I've noticed this for the past few versions. I agree it can lead to accidental deletion if you're not paying attention.

@xoma262
Copy link

xoma262 commented Jul 2, 2024

That's an issue that needs to be addressed eventually.

@g3gg0
Copy link

g3gg0 commented Aug 25, 2024

pushing this as this is quite annoying.

did some investigation why this is happening.

Issue: you are adding either two or three buttons and expect that the hitboxes are 33% each.
however before downloadings the third action is empty:

wxString thirdAction;

visually this results in three button sections:
grafik

however the logic uses TWO hitboxes with 50% each
grafik

there you add the "empty" (or undefined) third option that behaves weird:

texts.Add(thirdAction);

didn't check exactly, but i guess the reason for the 2 / 3 item check is there

int btn = file.IsDownload() && file.DownloadProgress() >= 0 ? 3 : 2;

if i had it set up to build locally, i'd either change ImageGrid.cpp:655 to not add the button when not downloading (favorite),
or change ImageGrid.cpp:277 to always return 3 without checking if is downloading / downloaded.

@g3gg0
Copy link

g3gg0 commented Aug 25, 2024

guess this is the related commit that introduced the behavior, as thirdAction.IsEmpty() was checked before that commit.
ca534b5
so @mia-0 might be the right person to ask for checking this, or @SoftFever as merger of #2218

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants