Skip to content

Commit

Permalink
Really fix trash state at startup (bug #9513 and #11913)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harald Judt committed May 21, 2015
1 parent 9bf051a commit 6010f71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions thunar/thunar-dbus-service.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ thunar_dbus_service_connect_trash_bin (ThunarDBusService *dbus_service,
g_signal_connect_swapped (G_OBJECT (dbus_service->trash_bin), "changed",
G_CALLBACK (thunar_dbus_service_trash_bin_changed),
dbus_service);
thunar_file_reload_idle (dbus_service->trash_bin);
}
g_object_unref (trash_bin_path);
}
Expand Down
3 changes: 3 additions & 0 deletions thunar/thunar-trash-action.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ thunar_trash_action_init (ThunarTrashAction *trash_action)

/* initially update the stock icon */
thunar_trash_action_changed (trash_action, trash_action->trash_bin);

/* schedule a reload in idle (fix for bug #9513) */
thunar_file_reload_idle (trash_action->trash_bin);
}
}

Expand Down

0 comments on commit 6010f71

Please sign in to comment.