Added autorun on boot setting for windows.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "singletons/Paths.hpp"
|
||||
#include "singletons/Resources.hpp"
|
||||
#include "singletons/WindowManager.hpp"
|
||||
#include "util/WindowsHelper.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
@@ -14,6 +15,12 @@ Settings::Settings(const QString &settingsDirectory)
|
||||
: ABSettings(settingsDirectory)
|
||||
{
|
||||
instance = this;
|
||||
|
||||
#ifdef USEWINSDK
|
||||
this->autorun = isRegisteredForStartup();
|
||||
this->autorun.connect(
|
||||
[](bool autorun) { setRegisteredForStartup(autorun); }, false);
|
||||
#endif
|
||||
}
|
||||
|
||||
Settings &Settings::getInstance()
|
||||
|
||||
Reference in New Issue
Block a user