mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 05:01:51 -04:00
UI: Make sure all message box buttons are translated
Instead of QMessageBox::question and QMessageBox::information, use the OBSMessageBox class, which translates all buttons.
This commit is contained in:
1 parent
bd34dce8b6
commit
522f5cdf3b
12 files changed
+53
-53
No files matched your search
@@ -1,6 +1,7 @@
|
||||
#include <string>
|
||||
#include <algorithm>
|
||||
#include <QMessageBox>
|
||||
#include "qt-wrappers.hpp"
|
||||
#include "audio-encoders.hpp"
|
||||
#include "window-basic-main.hpp"
|
||||
#include "window-basic-main-outputs.hpp"
|
||||
@@ -778,7 +779,7 @@ bool SimpleOutput::ConfigureRecording(bool updateReplayBuffer)
|
||||
|
||||
if (!dir) {
|
||||
if (main->isVisible())
|
||||
QMessageBox::information(main,
|
||||
OBSMessageBox::information(main,
|
||||
QTStr("Output.BadPath.Title"),
|
||||
QTStr("Output.BadPath.Text"));
|
||||
else
|
||||
@@ -1398,7 +1399,7 @@ bool AdvancedOutput::StartRecording()
|
||||
|
||||
if (!dir) {
|
||||
if (main->isVisible())
|
||||
QMessageBox::information(main,
|
||||
OBSMessageBox::information(main,
|
||||
QTStr("Output.BadPath.Title"),
|
||||
QTStr("Output.BadPath.Text"));
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user