Skip to content

Commit

Permalink
Merge pull request #124 from GoSecure/player_multiple_files
Browse files Browse the repository at this point in the history
Allow the player to open multiple replay files at once
  • Loading branch information
Pourliver authored Jul 2, 2019
2 parents cb6f495 + e10d475 commit 71d47c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pyrdp/player/MainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,13 @@ def __init__(self, bind_address: str, port: int, filesToRead: [str]):
self.replayWindow.openFile(fileName)

def onOpenFile(self):
fileName, _ = QFileDialog.getOpenFileName(self, "Open File")
fileNames, _ = QFileDialog.getOpenFileNames(self, "Open File(s)")

if fileName:
if fileNames:
self.tabManager.setCurrentWidget(self.replayWindow)
self.replayWindow.openFile(fileName)
for fileName in fileNames:
self.replayWindow.openFile(fileName)


def sendKeySequence(self, keys: [Qt.Key]):
if self.tabManager.currentWidget() is self.liveWindow:
Expand Down

0 comments on commit 71d47c0

Please sign in to comment.