Skip to content

Commit

Permalink
astyle
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Feb 1, 2025
1 parent b6a2ea6 commit 6e1d202
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/dialogs/transcribeaudiodialog.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Meltytech, LLC
* Copyright (c) 2024-2025 Meltytech, LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -192,8 +192,7 @@ TranscribeAudioDialog::TranscribeAudioDialog(const QString &trackName, QWidget *
auto path = QFileDialog::getOpenFileName(this, tr("Find Whisper.cpp"), Settings.whisperExe(),
QString(),
nullptr, Util::getFileDialogOptions());
if (QFileInfo(path).isExecutable())
{
if (QFileInfo(path).isExecutable()) {
Settings.setWhisperExe(path);
updateWhisperStatus();
}
Expand All @@ -213,13 +212,11 @@ TranscribeAudioDialog::TranscribeAudioDialog(const QString &trackName, QWidget *
auto path = QFileDialog::getOpenFileName(this, tr("Find Whisper.cpp"), Settings.whisperModel(),
"*.bin",
nullptr, Util::getFileDialogOptions());
if (QFileInfo(path).exists())
{
if (QFileInfo(path).exists()) {
LOG_INFO() << "Model found" << path;
Settings.setWhisperModel(path);
updateWhisperStatus();
} else
{
} else {
LOG_INFO() << "Model not found" << path;
}
});
Expand Down

0 comments on commit 6e1d202

Please sign in to comment.