MCPcopy Create free account
hub / github.com/Adaptix-Framework/AdaptixC2 / SetDefault

Method SetDefault

AdaptixClient/Source/Client/Settings.cpp:29–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void Settings::SetDefault()
30{
31 this->data.MainTheme = "Adaptix_Dark";
32 this->data.FontFamily = "Adaptix - JetBrains Mono";
33 this->data.FontSize = 10;
34 this->data.GraphVersion = "Version 1";
35 this->data.RemoteTerminalBufferSize = 10000;
36
37 this->data.ConsoleTime = true;
38 this->data.ConsoleBufferSize = 50000;
39 this->data.ConsoleNoWrap = true;
40 this->data.ConsoleAutoScroll = false;
41 this->data.ConsoleShowBackground = true;
42 this->data.ConsoleTheme = "console_adaptix_dark";
43
44 for ( int i = 0; i < 16; i++) {
45 data.SessionsTableColumns[i] = true;
46 data.SessionsColumnOrder[i] = i;
47 }
48
49 this->data.CheckHealth = true;
50 this->data.HealthCoaf = 2.0;
51 this->data.HealthOffset = 40;
52
53 for ( int i = 0; i < 11; i++)
54 data.TasksTableColumns[i] = true;
55
56 this->data.TabBlinkEnabled = true;
57}
58
59void Settings::LoadFromDB()
60{

Callers 1

SettingsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected