File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828#include "prefwin.h"
2929#include "prefwinmisc.h"
3030
31+ static int _initializing_prefwin = 0 ;
32+
3133void
3234prefwin_init_gui_misc_tab (GtkWidget * _prefwin ) {
35+ _initializing_prefwin = 1 ;
36+
3337 GtkWidget * w = _prefwin ;
3438 prefwin_set_toggle_button ("minimize_on_startup" , deadbeef -> conf_get_int ("gtkui.start_hidden" , 0 ));
3539
@@ -100,6 +104,8 @@ prefwin_init_gui_misc_tab (GtkWidget *_prefwin) {
100104 prefwin_set_combobox (combobox , i );
101105 }
102106 }
107+
108+ _initializing_prefwin = 0 ;
103109}
104110
105111void
173179on_titlebar_format_playing_changed (GtkEditable * editable ,
174180 gpointer user_data )
175181{
182+ if (_initializing_prefwin ) {
183+ return ;
184+ }
176185 const char * text = gtk_entry_get_text (GTK_ENTRY (editable ));
177186 if (* text == 0 ) {
178187 text = NULL ;
187196on_titlebar_format_stopped_changed (GtkEditable * editable ,
188197 gpointer user_data )
189198{
199+ if (_initializing_prefwin ) {
200+ return ;
201+ }
190202 const char * text = gtk_entry_get_text (GTK_ENTRY (editable ));
191203 if (* text == 0 ) {
192204 text = NULL ;
You can’t perform that action at this time.
0 commit comments