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

Collect dt_control_log() and dt_toast_log() messages #16967

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

jenshannoschwalm
Copy link
Collaborator

Visibility of messages shown via dt_control_log(), dt_toast_log() and dt_toast_markup_log() is currently pretty bad as only the last shown message is shown if new ones are "pushed".

This commit redesigns both buffers to be used as circular buffers, a new call to any function above will not display the last text but all available and not-yet ackknowledged (or disappeared) messages for improved user readability.

I think there was some discussion - can't find it right now - @TurboGit and @victoryforce iirc about some sort of larger log to be shown on request or something like that. This pr would be a very simply&safe redesign showing the last bunch of messages. No new strings, nothing "unusual" ...

@jenshannoschwalm jenshannoschwalm added feature: enhancement current features to improve scope: UI user interface and interactions labels Jun 9, 2024
@TurboGit
Copy link
Member

TurboGit commented Jun 9, 2024

@jenshannoschwalm : The discussion was there #16611

@TurboGit
Copy link
Member

TurboGit commented Jun 9, 2024

Note that in this discussion I have even proposed a new button to be able to browse the log in a dialog.

@TurboGit TurboGit added this to the 5.0 milestone Jun 9, 2024
@jenshannoschwalm
Copy link
Collaborator Author

Note that in this discussion I have even proposed a new button to be able to browse the log in a dialog.

Right, #16611 was it. Although i personally think this here is sufficient.

@jenshannoschwalm jenshannoschwalm force-pushed the collected_messages branch 2 times, most recently from 9ddc846 to 982bb91 Compare June 21, 2024 17:15
@jenshannoschwalm jenshannoschwalm force-pushed the collected_messages branch 2 times, most recently from b5a21e1 to 361d212 Compare July 7, 2024 08:26
@jenshannoschwalm jenshannoschwalm force-pushed the collected_messages branch 2 times, most recently from d730bac to bc83e0a Compare July 30, 2024 18:06
Visibility of messges shown via dt_control_log(), dt_toast_log() and dt_toast_markup_log() is currently
pretty bad as only the last shown message is shown if new ones are "pushed".

This commit redesigns both buffers to be used as circular buffers, a new call to any function above
will not display the last text but all available and not-yet ackknowledged (or disappered) messages
for improved user readability.
Copy link
Member

@TurboGit TurboGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's see how this works in real life... So merging for field testing. Thanks!

@TurboGit TurboGit merged commit 0d174b5 into darktable-org:master Aug 5, 2024
6 checks passed
@dterrahe
Copy link
Member

dterrahe commented Aug 5, 2024

image

@jenshannoschwalm jenshannoschwalm deleted the collected_messages branch August 5, 2024 15:23
@MStraeten
Copy link
Collaborator

MStraeten commented Aug 5, 2024

behaviour of dterrahe reproducible on macOS:
image
if that's intentional, then this should be toggled on/off via preferences

@jenshannoschwalm
Copy link
Collaborator Author

Yes, this is how it's been designed. Take it as a simple-solution proposal instead of collecting to a buffer/window that can be selected and opened.

If this information collection is enough - instead of something more complex - i could add a preference option for "how many lines" to make this less "offensive". Otherwise - if this feature is not liked or not good enough by others, we can just revert.

jenshannoschwalm added a commit to jenshannoschwalm/darktable that referenced this pull request Aug 6, 2024
The number of lines shown for toast and log messages could be felt to be too offensive,
this PR makes the number of lines choosable via preferences between 0 (down't show any)
and a max of 8.

Fixes comments in darktable-org#16967
jenshannoschwalm added a commit to jenshannoschwalm/darktable that referenced this pull request Aug 6, 2024
The number of lines shown for toast and log messages could be felt to be too offensive,
this PR makes the number of lines choosable via preferences between 0 (down't show any)
and a max of 8.

Fixes comments in darktable-org#16967
jenshannoschwalm added a commit to jenshannoschwalm/darktable that referenced this pull request Aug 6, 2024
The number of lines shown for toast and log messages could be felt to be too offensive,
this PR makes the number of lines choosable via preferences between 0 (down't show any)
and a max of 15.

Fixes comments about index errors and UI in darktable-org#16967
jenshannoschwalm added a commit to jenshannoschwalm/darktable that referenced this pull request Aug 6, 2024
The number of lines shown for toast and log messages could be felt to be too offensive,
this PR makes the number of lines
a) 1 for toast
b) 7 for log messages so there is a still a good chance to see every log message

Fixes comments about index errors and UI in darktable-org#16967
TurboGit pushed a commit that referenced this pull request Aug 6, 2024
The number of lines shown for toast and log messages could be felt to be too offensive,
this PR makes the number of lines
a) 1 for toast
b) 7 for log messages so there is a still a good chance to see every log message

Fixes comments about index errors and UI in #16967
jenshannoschwalm added a commit to jenshannoschwalm/darktable that referenced this pull request Aug 6, 2024
The number of lines shown for toast and log messages could be felt to be too offensive,
this PR makes the number of lines
a) 1 for toast
b) 7 for log messages so there is a still a good chance to see every log message

Fixes comments about index errors and UI in darktable-org#16967
marc-fouquet pushed a commit to marc-fouquet/darktable that referenced this pull request Sep 13, 2024
The number of lines shown for toast and log messages could be felt to be too offensive,
this PR makes the number of lines
a) 1 for toast
b) 7 for log messages so there is a still a good chance to see every log message

Fixes comments about index errors and UI in darktable-org#16967
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: enhancement current features to improve scope: UI user interface and interactions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants