Remove doubled semicolon
This commit is contained in:
parent
322ceeaddb
commit
7b5666a906
|
@ -58,7 +58,7 @@ bool backend::toggleAutostart(bool enabled) {
|
||||||
std::filesystem::path shortcutPath = std::getenv("APPDATA");
|
std::filesystem::path shortcutPath = std::getenv("APPDATA");
|
||||||
shortcutPath = shortcutPath / "Microsoft" / "Windows" / "Start Menu" / "Programs" / "Startup";
|
shortcutPath = shortcutPath / "Microsoft" / "Windows" / "Start Menu" / "Programs" / "Startup";
|
||||||
std::filesystem::create_directories(shortcutPath);
|
std::filesystem::create_directories(shortcutPath);
|
||||||
shortcutPath = shortcutPath / "PlayerLink.lnk";;
|
shortcutPath = shortcutPath / "PlayerLink.lnk";
|
||||||
|
|
||||||
if (!enabled && std::filesystem::exists(shortcutPath)) {
|
if (!enabled && std::filesystem::exists(shortcutPath)) {
|
||||||
std::filesystem::remove(shortcutPath);
|
std::filesystem::remove(shortcutPath);
|
||||||
|
|
Loading…
Reference in New Issue