make notray no more, use --tray if you want to run the gui as a tray icon

This commit is contained in:
Jeff Becker 2020-11-17 11:19:35 -05:00
parent ce1ad4a53f
commit f76790683e
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 2 additions and 2 deletions

View File

@ -29,11 +29,11 @@ int32_t main(int32_t argc, char *argv[])
// crude CLI option parsing
bool nohide = false;
bool notray = false;
bool notray = true;
for (int i=0; argv[i] != nullptr; ++i) {
std::string arg = argv[i];
if (arg == "--nohide" || arg == "--no-hide") nohide = true;
if (arg == "--notray" || arg == "--no-tray") notray = true;
if (arg == "--tray") notray = false;
if (arg == "--rpc" and argv[i+1] != nullptr)
{
RPCURL = argv[i+1];