From ec6c04a7df8858c32b96de5fd3668f07dcb25760 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Tue, 13 Jun 2017 22:37:01 +0300 Subject: [PATCH] video settings to main menu --- toxygen/mainscreen.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/toxygen/mainscreen.py b/toxygen/mainscreen.py index 9847d01..1c1e113 100644 --- a/toxygen/mainscreen.py +++ b/toxygen/mainscreen.py @@ -63,6 +63,7 @@ class MainWindow(QtWidgets.QMainWindow, Singleton): self.actionSettings = QtWidgets.QAction(Form) self.actionSettings.setObjectName("actionSettings") self.audioSettings = QtWidgets.QAction(Form) + self.videoSettings = QtWidgets.QAction(Form) self.pluginData = QtWidgets.QAction(Form) self.importPlugin = QtWidgets.QAction(Form) self.reloadPlugins = QtWidgets.QAction(Form) @@ -75,6 +76,7 @@ class MainWindow(QtWidgets.QMainWindow, Singleton): self.menuSettings.addAction(self.actionNotifications) self.menuSettings.addAction(self.actionNetwork) self.menuSettings.addAction(self.audioSettings) + self.menuSettings.addAction(self.videoSettings) self.menuSettings.addAction(self.updateSettings) self.menuPlugins.addAction(self.pluginData) self.menuPlugins.addAction(self.importPlugin) @@ -94,6 +96,7 @@ class MainWindow(QtWidgets.QMainWindow, Singleton): self.actionInterface_settings.triggered.connect(self.interface_settings) self.actionNotifications.triggered.connect(self.notification_settings) self.audioSettings.triggered.connect(self.audio_settings) + self.videoSettings.triggered.connect(self.video_settings) self.updateSettings.triggered.connect(self.update_settings) self.pluginData.triggered.connect(self.plugins_menu) self.lockApp.triggered.connect(self.lock_app) @@ -459,6 +462,10 @@ class MainWindow(QtWidgets.QMainWindow, Singleton): self.audio_s = AudioSettings() self.audio_s.show() + def video_settings(self): + self.video_s = VideoSettings() + self.video_s.show() + def update_settings(self): self.update_s = UpdateSettings() self.update_s.show()