Skip to content

Commit

Permalink
Revert "Merge branch 'master' of git://github.com/AenBleidd/boinc"
Browse files Browse the repository at this point in the history
This reverts commit cacecc8, reversing
changes made to 716ebdd.
  • Loading branch information
AenBleidd committed Jul 1, 2018
1 parent 23e737e commit ab3a4fa
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 300 deletions.
24 changes: 0 additions & 24 deletions clientgui/BOINCGUIApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,6 @@ bool CBOINCGUIApp::OnInit() {
m_bSafeMessageBoxDisplayed = 0;
m_bRunDaemon = true;
m_bNeedRunDaemon = true;
m_bUseDifferentTaskColours = false;
m_colourTaskCPU = *wxWHITE;
m_colourTaskGPUIntel = wxColor(0, 123, 195);
m_colourTaskGPUAMD = wxColor(220, 27, 35);
m_colourTaskGPUNVIDIA = wxColor(119, 183, 0);

// Initialize local variables
int iErrorCode = 0;
Expand Down Expand Up @@ -195,20 +190,6 @@ bool CBOINCGUIApp::OnInit() {
m_pConfig->Read(wxT("GUISelection"), &m_iGUISelected, BOINC_SIMPLEGUI);
m_pConfig->Read(wxT("EventLogOpen"), &bOpenEventLog);
m_pConfig->Read(wxT("RunDaemon"), &m_bRunDaemon, 1L);
m_pConfig->Read(wxT("UseDifferentTaskColours"), &m_bUseDifferentTaskColours, false);
wxString colour;
m_pConfig->Read(wxT("CPUTaskColour"), &colour);
if (!colour.IsEmpty())
m_colourTaskCPU.Set(colour);
m_pConfig->Read(wxT("IntelGPUTaskColour"), &colour);
if (!colour.IsEmpty())
m_colourTaskGPUIntel.Set(colour);
m_pConfig->Read(wxT("AMDGPUTaskColour"), &colour);
if (!colour.IsEmpty())
m_colourTaskGPUAMD.Set(colour);
m_pConfig->Read(wxT("NVIDIAGPUTaskColour"), &colour);
if (!colour.IsEmpty())
m_colourTaskGPUNVIDIA.Set(colour);

// Detect if the daemon should be launched
m_bNeedRunDaemon = m_bNeedRunDaemon && m_bRunDaemon;
Expand Down Expand Up @@ -606,11 +587,6 @@ void CBOINCGUIApp::SaveState() {
m_pConfig->Write(wxT("DisplayShutdownConnectedClientDialog"), m_iDisplayShutdownConnectedClientDialog);
m_pConfig->Write(wxT("DisableAutoStart"), m_iBOINCMGRDisableAutoStart);
m_pConfig->Write(wxT("RunDaemon"), m_bRunDaemon);
m_pConfig->Write(wxT("UseDifferentTaskColours"), m_bUseDifferentTaskColours);
m_pConfig->Write(wxT("CPUTaskColour"), m_colourTaskCPU);
m_pConfig->Write(wxT("IntelGPUTaskColour"), m_colourTaskGPUIntel);
m_pConfig->Write(wxT("AMDGPUTaskColour"), m_colourTaskGPUAMD);
m_pConfig->Write(wxT("NVIDIAGPUTaskColour"), m_colourTaskGPUNVIDIA);
}


Expand Down
22 changes: 0 additions & 22 deletions clientgui/BOINCGUIApp.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,6 @@ class CBOINCGUIApp : public wxApp {

int m_bSafeMessageBoxDisplayed;

bool m_bUseDifferentTaskColours;
// Task colours
wxColour m_colourTaskCPU;
wxColour m_colourTaskGPUIntel;
wxColour m_colourTaskGPUAMD;
wxColour m_colourTaskGPUNVIDIA;

public:

bool OnInit();
Expand Down Expand Up @@ -225,21 +218,6 @@ class CBOINCGUIApp : public wxApp {
void SetAboutDialogIsOpen(bool set) { m_bAboutDialogIsOpen = set; }
bool GetAboutDialogIsOpen() { return m_bAboutDialogIsOpen; }

void SetUseDifferentTaskColours(bool set) { m_bUseDifferentTaskColours = set; }
bool GetUseDifferentTaskColours() { return m_bUseDifferentTaskColours; }

void SetColourTaskCPU(wxColour set) { m_colourTaskCPU = set; }
wxColour GetColourTaskCPU() { return m_colourTaskCPU; }

void SetColourTaskGPUIntel(wxColour set) { m_colourTaskGPUIntel = set; }
wxColour GetColourTaskGPUIntel() { return m_colourTaskGPUIntel; }

void SetColourTaskGPUAMD(wxColour set) { m_colourTaskGPUAMD = set; }
wxColour GetColourTaskGPUAMD() { return m_colourTaskGPUAMD; }

void SetColourTaskGPUNVIDIA(wxColour set) { m_colourTaskGPUNVIDIA = set; }
wxColour GetColourTaskGPUNVIDIA() { return m_colourTaskGPUNVIDIA; }

#ifdef __WXMAC__
// The following Cocoa routines are in CBOINCGUIApp.mm
//
Expand Down
Loading

0 comments on commit ab3a4fa

Please sign in to comment.