mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-23 01:58:48 +02:00
Move MainWindow::getContext() to constructor
ctx always exists, spares a few if else statements
This commit is contained in:
+3
-3
@@ -37,14 +37,14 @@ MainWindow * MainWindow::pMainWindow = nullptr;
|
||||
MainWindow::MainWindow(AppContext *ctx, QWidget *parent) :
|
||||
QMainWindow(parent),
|
||||
ui(new Ui::MainWindow),
|
||||
m_ctx(ctx),
|
||||
m_aboutDialog(new AboutDialog(this)),
|
||||
m_windowCalc(new CalcWindow(this))
|
||||
m_ctx(ctx)
|
||||
{
|
||||
pMainWindow = this;
|
||||
ui->setupUi(this);
|
||||
|
||||
m_windowSettings = new Settings(this);
|
||||
m_aboutDialog = new AboutDialog(this);
|
||||
m_windowCalc = new CalcWindow(this);
|
||||
|
||||
// light/dark theme
|
||||
m_skins.insert("Native", "");
|
||||
|
||||
Reference in New Issue
Block a user