File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 2277
2277
<shortdescription >duration of the UI transitions in ms</shortdescription >
2278
2278
<longdescription >how long the transitions take (in ms) for expanding or collapsing modules and other UI elements</longdescription >
2279
2279
</dtconfig >
2280
+ <dtconfig prefs =" misc" section =" interface" >
2281
+ <name >message_list_length</name >
2282
+ <type min =" 0" max =" 8" >int</type >
2283
+ <default >1</default >
2284
+ <shortdescription >number of message lines</shortdescription >
2285
+ <longdescription >how many message lines should be shown</longdescription >
2286
+ </dtconfig >
2280
2287
<dtconfig >
2281
2288
<name >ui/style/preview_size</name >
2282
2289
<type min =" 100" max =" 500" >int</type >
Original file line number Diff line number Diff line change @@ -2648,8 +2648,9 @@ static void _ui_log_redraw_callback(gpointer instance,
2648
2648
dt_pthread_mutex_lock (& darktable .control -> log_mutex );
2649
2649
if (darktable .control -> log_ack != darktable .control -> log_pos )
2650
2650
{
2651
+ const int numlines = MAX (0 , MIN (DT_CTL_TOAST_SIZE , dt_conf_get_int ("message_list_length" )));
2651
2652
const uint32_t first_message = MAX (darktable .control -> log_ack ,
2652
- darktable .control -> log_pos - DT_CTL_LOG_SIZE + 1 );
2653
+ darktable .control -> log_pos - numlines );
2653
2654
gchar * message = g_malloc (ALLMESSSIZE );
2654
2655
if (message )
2655
2656
{
@@ -2686,8 +2687,9 @@ static void _ui_toast_redraw_callback(gpointer instance,
2686
2687
dt_pthread_mutex_lock (& darktable .control -> toast_mutex );
2687
2688
if (darktable .control -> toast_ack != darktable .control -> toast_pos )
2688
2689
{
2690
+ const int numlines = MAX (0 , MIN (DT_CTL_TOAST_SIZE , dt_conf_get_int ("message_list_length" )));
2689
2691
const uint32_t first_message = MAX (darktable .control -> toast_ack ,
2690
- darktable .control -> toast_pos - DT_CTL_TOAST_SIZE + 1 );
2692
+ darktable .control -> toast_pos - numlines );
2691
2693
gchar * message = g_malloc (ALLMESSSIZE );
2692
2694
if (message )
2693
2695
{
You can’t perform that action at this time.
0 commit comments