Skip to content

Commit 4132793

Browse files
committed
Some Elements/Liquid fixes for Qt GUI
1 parent 8e85584 commit 4132793

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/qt/guiutil.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,11 @@ fs::path static StartupShortcutPath()
556556
std::string chain = gArgs.GetChainName();
557557
if (chain == CBaseChainParams::MAIN)
558558
return GetSpecialFolderPath(CSIDL_STARTUP) / "Bitcoin.lnk";
559+
if (chain == CBaseChainParams::LIQUID1)
560+
return GetSpecialFolderPath(CSIDL_STARTUP) / "Liquid.lnk";
559561
if (chain == CBaseChainParams::TESTNET) // Remove this special case when CBaseChainParams::TESTNET = "testnet4"
560562
return GetSpecialFolderPath(CSIDL_STARTUP) / "Bitcoin (testnet).lnk";
561-
return GetSpecialFolderPath(CSIDL_STARTUP) / strprintf("Bitcoin (%s).lnk", chain);
563+
return GetSpecialFolderPath(CSIDL_STARTUP) / strprintf("Elements (%s).lnk", chain);
562564
}
563565

564566
bool GetStartOnSystemStartup()
@@ -639,7 +641,9 @@ fs::path static GetAutostartFilePath()
639641
std::string chain = gArgs.GetChainName();
640642
if (chain == CBaseChainParams::MAIN)
641643
return GetAutostartDir() / "bitcoin.desktop";
642-
return GetAutostartDir() / strprintf("bitcoin-%s.lnk", chain);
644+
if (chain == CBaseChainParams::LIQUID1)
645+
return GetAutostartDir() / "liquid.desktop";
646+
return GetAutostartDir() / strprintf("elements-%s.lnk", chain);
643647
}
644648

645649
bool GetStartOnSystemStartup()
@@ -684,8 +688,10 @@ bool SetStartOnSystemStartup(bool fAutoStart)
684688
optionFile << "Type=Application\n";
685689
if (chain == CBaseChainParams::MAIN)
686690
optionFile << "Name=Bitcoin\n";
691+
else if (chain == CBaseChainParams::LIQUID1)
692+
optionFile << "Name=Liquid\n";
687693
else
688-
optionFile << strprintf("Name=Bitcoin (%s)\n", chain);
694+
optionFile << strprintf("Name=Elements (%s)\n", chain);
689695
optionFile << "Exec=" << pszExePath << strprintf(" -min -chain=%s\n", chain);
690696
optionFile << "Terminal=false\n";
691697
optionFile << "Hidden=false\n";

0 commit comments

Comments
 (0)