Revert "added error message if settings initalizion failed"

This reverts commit 2b9b96abb5.
This commit is contained in:
fourtf
2019-10-03 22:12:22 +02:00
parent 5aff7b0b40
commit f3ff40385d
4 changed files with 10 additions and 40 deletions
+3 -30
View File
@@ -5,7 +5,6 @@
#include "BrowserExtension.hpp"
#include "RunGui.hpp"
#include "common/Args.hpp"
#include "common/Modes.hpp"
#include "singletons/Paths.hpp"
#include "singletons/Settings.hpp"
#include "util/IncognitoBrowser.hpp"
@@ -29,35 +28,9 @@ int main(int argc, char **argv)
else
{
initArgs(args);
Paths *paths{};
Paths paths;
Settings settings(paths.settingsDirectory);
try
{
paths = new Paths;
}
catch (std::runtime_error &error)
{
QMessageBox box;
if (Modes::getInstance().isPortable)
{
box.setText(
error.what() +
QStringLiteral(
"\n\nInfo: Portable mode requires the application to "
"be in a writeable location. If you don't want "
"portable mode reinstall the application. "
"https://chatterino.com."));
}
else
{
box.setText(error.what());
}
box.exec();
return 1;
}
Settings settings(paths->settingsDirectory);
runGui(a, *paths, settings);
runGui(a, paths, settings);
}
}