Skip to content

Commit

Permalink
right-click menu placing #1429
Browse files Browse the repository at this point in the history
  • Loading branch information
ethical-haquer committed Mar 10, 2024
1 parent eea50d4 commit 8daa2a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion porcupine/plugins/directory_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def _on_right_click(self, event: tkinter.Event[DirectoryTree], menu_key: bool) -
self._populate_contextmenu()
if self.contextmenu.index("end") is not None:
# Menu is not empty
self.contextmenu.tk_popup(menu_x+15, menu_y)
self.contextmenu.tk_popup(menu_x+10, menu_y)
return "break"


Expand Down
2 changes: 1 addition & 1 deletion porcupine/plugins/tab_closing.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def show_menu(event: tkinter.Event[tabs.TabManager]) -> None:
label="Close other tabs", command=partial(close_clicked_tab, event, what2close="others")
)

menu.tk_popup(event.x_root+15, event.y_root)
menu.tk_popup(event.x_root+10, event.y_root)
menu.bind("<Unmap>", (lambda event: menu.after_idle(menu.destroy)), add=True)


Expand Down

0 comments on commit 8daa2a3

Please sign in to comment.