Skip to content

Commit

Permalink
Update comic_list_widget.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tonquer committed Oct 15, 2023
1 parent d4d6667 commit 265272e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/component/list/comic_list_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def __init__(self, parent):
self.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.itemClicked.connect(self.SelectItem)
self.isDelMenu = False
self.isMoveMenu = False
self.isGame = False
self.isLocal = False
self.isLocalEps = False
Expand Down Expand Up @@ -72,6 +73,9 @@ def SelectMenuBook(self, pos):
if self.isDelMenu:
action = popMenu.addAction(Str.GetStr(Str.Delete))
action.triggered.connect(partial(self.DelHandler, index))
if self.isMoveMenu:
action = popMenu.addAction(Str.GetStr(Str.Move))
action.triggered.connect(partial(self.MoveHandler, index))
if self.openMenu:
action = popMenu.addAction(Str.GetStr(Str.OpenDir))
action.triggered.connect(partial(self.OpenDirHandler, index))
Expand Down

0 comments on commit 265272e

Please sign in to comment.