Skip to content

Commit

Permalink
Fix for stuurman issue sde-gui#34
Browse files Browse the repository at this point in the history
Fix for idle_func - pref dialog options are saved correctly
  • Loading branch information
maplee0 committed Nov 20, 2023
1 parent fd74deb commit db83344
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pcmanfm.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ int main(int argc, char** argv)
{
window_role = NULL; /* reset it for clients callbacks */
fm_volume_manager_init();
GDK_THREADS_ENTER();
gtk_main();
GDK_THREADS_LEAVE();
/* g_debug("main loop ended"); */

pcmanfm_save_config(TRUE);
Expand Down Expand Up @@ -385,7 +387,7 @@ void pcmanfm_save_config(gboolean immediate)
{
/* install an idle handler to save the config file. */
if( 0 == save_config_idle)
save_config_idle = g_idle_add_full(G_PRIORITY_LOW, (GSourceFunc)on_save_config_idle, NULL, NULL);
save_config_idle = gdk_threads_add_idle_full(G_PRIORITY_LOW, (GSourceFunc)on_save_config_idle, NULL, NULL);
}
}

Expand Down Expand Up @@ -468,4 +470,4 @@ const char * config_app_name(void)
const char * pcmanfm_get_my_command(void)
{
return my_command;
}
}

0 comments on commit db83344

Please sign in to comment.