Skip to content

Commit

Permalink
Screen reader announcement for storage refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Krassnigg authored and jakrams committed Jul 18, 2023
1 parent e5524a4 commit c0d09b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ArrtSource/Storage/UI/StorageBrowserWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <QShortcut>
#include <Storage/StorageAccount.h>
#include <Storage/UI/StorageBrowserWidget.h>
#include <Utils/Logging.h>

StorageBrowserWidget::StorageBrowserWidget(QWidget* parent /*= {}*/)
: QWidget(parent)
Expand Down Expand Up @@ -366,4 +367,7 @@ void StorageBrowserWidget::on_RefreshButton_clicked()
{
m_storageAccount->ClearCache();
m_storageModel.RefreshModel(false);

ScreenReaderAlert("Storage", "Storage Container Refreshed");
ScreenReaderAlert("Storage", nullptr);
}
2 changes: 1 addition & 1 deletion ArrtSource/Utils/Logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void ArrtAppWindow::LogMessageHandlerStatic(QtMsgType type, const QMessageLogCon
{ ArrtAppWindow::s_instance->LogMessageHandler(type, category, msg); });
}

void ArrtAppWindow::LogMessageHandler(QtMsgType type, const QString& category, const QString& msg)
void ArrtAppWindow::LogMessageHandler(QtMsgType type, const QString& /*category*/, const QString& msg)
{
QString line;

Expand Down

0 comments on commit c0d09b7

Please sign in to comment.