Revert "added error message if settings initalizion failed"
This reverts commit 2b9b96abb5.
This commit is contained in:
+3
-30
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user