fix: Entferne ungenutzten QFileDialog.Options-Import
Co-authored-by: aider (ollama/qwen2.5-coder:14b) <aider@aider.chat>
This commit is contained in:
1 parent
7353fbcc65
commit
8f06c89f43
1 file changed
+1
-2
@@ -75,8 +75,7 @@ class MainWindow(QMainWindow):
|
|||||||
self.audio_stream = None
|
self.audio_stream = None
|
||||||
|
|
||||||
def open_wav_file(self):
|
def open_wav_file(self):
|
||||||
options = QFileDialog.Options()
|
file_path, _ = QFileDialog.getOpenFileName(self, "WAV-Datei öffnen", "", "WAV-Dateien (*.wav);;Alle Dateien (*)")
|
||||||
file_path, _ = QFileDialog.getOpenFileName(self, "WAV-Datei öffnen", "", "WAV-Dateien (*.wav);;Alle Dateien (*)", options=options)
|
|
||||||
if file_path:
|
if file_path:
|
||||||
self.audio_data, self.sample_rate = sf.read(file_path)
|
self.audio_data, self.sample_rate = sf.read(file_path)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user