Skip to content

Commit

Permalink
RMG: simplify on_Action_Audio_{Increase,Decrease}Volume()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Apr 4, 2024
1 parent c6ec9c0 commit b5b97b1
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions Source/RMG/UserInterface/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1801,24 +1801,12 @@ void MainWindow::on_Action_Help_Update(void)

void MainWindow::on_Action_Audio_IncreaseVolume(void)
{
if (!CoreIncreaseVolume())
{
// It's rather annoying to have an error message pop-up everytime
// you use the increase volume hotkey when the volume is already
// at 100%, so we'll disable the error message
//this->showErrorMessage("CoreIncreaseVolume() Failed", QString::fromStdString(CoreGetError()));
}
CoreIncreaseVolume();
}

void MainWindow::on_Action_Audio_DecreaseVolume(void)
{
if (!CoreDecreaseVolume())
{
// It's rather annoying to have an error message pop-up everytime
// you use the decrease volume hotkey when the volume is already
// at 0%, so we'll disable the error message
//this->showErrorMessage("CoreDecreaseVolume() Failed", QString::fromStdString(CoreGetError()));
}
CoreDecreaseVolume();
}

void MainWindow::on_Action_Audio_ToggleVolumeMute(void)
Expand Down

0 comments on commit b5b97b1

Please sign in to comment.