forked from qt-creator/qt-creator
Terminal: Make audible bell configurable
Change-Id: I6cc02f2f1b873f39352151265fb7ba1fe0f170fc Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -332,7 +332,11 @@ void TerminalWidget::setupSurface()
|
||||
connect(m_surface.get(), &Internal::TerminalSurface::unscroll, this, [this] {
|
||||
verticalScrollBar()->setValue(verticalScrollBar()->maximum());
|
||||
});
|
||||
connect(m_surface.get(), &Internal::TerminalSurface::bell, this, [] { QApplication::beep(); });
|
||||
connect(m_surface.get(), &Internal::TerminalSurface::bell, this, [] {
|
||||
if (TerminalSettings::instance().audibleBell.value())
|
||||
QApplication::beep();
|
||||
});
|
||||
|
||||
if (m_shellIntegration) {
|
||||
connect(m_shellIntegration.get(),
|
||||
&ShellIntegration::commandChanged,
|
||||
|
||||
Reference in New Issue
Block a user