Skip to content

Commit

Permalink
always show commit-deletion-GUI during commit-dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
forgottosave committed Nov 26, 2024
1 parent c3ef8e6 commit da9d7fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/trashBin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ class TrashBinComponentImpl : public ComponentBase, public WindowOptions {

Element Render() final {
// check if in deletion or stuff
if (ostreetui.GetViewMode() == ViewMode::COMMIT_DRAGGING &&
ostreetui.GetOstreeRepo().IsMostRecentCommitOnBranch(ostreetui.GetModeHash())) {
if (ostreetui.GetViewMode() == ViewMode::COMMIT_DRAGGING) {
showBin();
} else {
hideBin();
Expand Down

0 comments on commit da9d7fb

Please sign in to comment.