mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-07 17:16:00 -05:00
add warning if translation cannot be found (#99)
* add warning if translation cannot be found * extract displaying message boxes to separate function
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#include <QFileDialog>
|
||||
#include <QMessageBox>
|
||||
|
||||
#include "headers/advanced-scene-switcher.hpp"
|
||||
#include "headers/utility.hpp"
|
||||
@@ -349,10 +348,8 @@ void AdvSceneSwitcher::on_importSettings_clicked()
|
||||
file.fileName().toUtf8().constData());
|
||||
|
||||
if (!obj) {
|
||||
QMessageBox Msgbox;
|
||||
Msgbox.setText(obs_module_text(
|
||||
DisplayMessage(obs_module_text(
|
||||
"AdvSceneSwitcher.generalTab.saveOrLoadsettings.loadFail"));
|
||||
Msgbox.exec();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -373,10 +370,8 @@ void AdvSceneSwitcher::on_importSettings_clicked()
|
||||
|
||||
obs_data_release(obj);
|
||||
|
||||
QMessageBox Msgbox;
|
||||
Msgbox.setText(obs_module_text(
|
||||
DisplayMessage(obs_module_text(
|
||||
"AdvSceneSwitcher.generalTab.saveOrLoadsettings.loadSuccess"));
|
||||
Msgbox.exec();
|
||||
close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user