Skip to content

Commit

Permalink
Remove redundant help button from dialogs (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
Et0h committed Oct 18, 2021
1 parent 69621ee commit 0b8c2dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion syncplay/ui/GuiConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def openRoomsDialog(self):
RoomsLayout.addWidget(RoomsButtonBox, 2, 0, 1, 1)
RoomsDialog.setLayout(RoomsLayout)
RoomsDialog.setModal(True)
RoomsDialog.setWindowFlags(RoomsDialog.windowFlags() & ~Qt.WindowContextHelpButtonHint)
RoomsDialog.show()
result = RoomsDialog.exec_()
if result == QtWidgets.QDialog.Accepted:
Expand Down Expand Up @@ -668,7 +669,6 @@ def addBasicTab(self):
self.editRoomsButton.setIcon(QtGui.QIcon(resourcespath + 'bullet_edit_centered.png'))
self.editRoomsButton.setObjectName(constants.LOAD_SAVE_MANUALLY_MARKER + "edit-rooms")
self.editRoomsButton.released.connect(self.openRoomsDialog)

self.hostLabel.setObjectName("host")
self.hostCombobox.setObjectName(constants.LOAD_SAVE_MANUALLY_MARKER + "host")
self.usernameLabel.setObjectName("name")
Expand Down
5 changes: 5 additions & 0 deletions syncplay/ui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,7 @@ def OpenAddURIsToPlaylistDialog(self):
URIsLayout.addWidget(URIsButtonBox, 2, 0, 1, 1)
URIsDialog.setLayout(URIsLayout)
URIsDialog.setModal(True)
URIsDialog.setWindowFlags(URIsDialog.windowFlags() & ~Qt.WindowContextHelpButtonHint)
URIsDialog.show()
result = URIsDialog.exec_()
if result == QtWidgets.QDialog.Accepted:
Expand Down Expand Up @@ -1175,6 +1176,7 @@ def openEditRoomsDialog(self):
RoomsLayout.addWidget(RoomsButtonBox, 2, 0, 1, 1)
RoomsDialog.setLayout(RoomsLayout)
RoomsDialog.setModal(True)
RoomsDialog.setWindowFlags(RoomsDialog.windowFlags() & ~Qt.WindowContextHelpButtonHint)
RoomsDialog.show()
result = RoomsDialog.exec_()
if result == QtWidgets.QDialog.Accepted:
Expand Down Expand Up @@ -1209,6 +1211,7 @@ def openEditPlaylistDialog(self):
editPlaylistDialog.setModal(True)
editPlaylistDialog.setMinimumWidth(600)
editPlaylistDialog.setMinimumHeight(500)
editPlaylistDialog.setWindowFlags(editPlaylistDialog.windowFlags() & ~Qt.WindowContextHelpButtonHint)
editPlaylistDialog.show()
result = editPlaylistDialog.exec_()
if result == QtWidgets.QDialog.Accepted:
Expand Down Expand Up @@ -1239,6 +1242,7 @@ def openSetMediaDirectoriesDialog(self):
MediaDirectoriesAddFolderButton.pressed.connect(lambda: self.openAddMediaDirectoryDialog(MediaDirectoriesTextbox, MediaDirectoriesDialog))
MediaDirectoriesLayout.addWidget(MediaDirectoriesAddFolderButton, 1, 1, 1, 1, Qt.AlignTop)
MediaDirectoriesDialog.setLayout(MediaDirectoriesLayout)
MediaDirectoriesDialog.setWindowFlags(MediaDirectoriesDialog.windowFlags() & ~Qt.WindowContextHelpButtonHint)
MediaDirectoriesDialog.setModal(True)
MediaDirectoriesDialog.show()
result = MediaDirectoriesDialog.exec_()
Expand All @@ -1264,6 +1268,7 @@ def openSetTrustedDomainsDialog(self):
TrustedDomainsButtonBox.rejected.connect(TrustedDomainsDialog.reject)
TrustedDomainsLayout.addWidget(TrustedDomainsButtonBox, 2, 0, 1, 1)
TrustedDomainsDialog.setLayout(TrustedDomainsLayout)
TrustedDomainsDialog.setWindowFlags(TrustedDomainsDialog.windowFlags() & ~Qt.WindowContextHelpButtonHint)
TrustedDomainsDialog.setModal(True)
TrustedDomainsDialog.show()
result = TrustedDomainsDialog.exec_()
Expand Down

0 comments on commit 0b8c2dd

Please sign in to comment.