mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-16 05:42:04 +08:00
进度更新
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
#include <QApplication>
|
||||
#include <QPushButton>
|
||||
#include <spklogging.h>
|
||||
#include "spkwindow.h"
|
||||
#include "spkui_general.h"
|
||||
#include "spkstore.h"
|
||||
|
||||
#include <QFile>
|
||||
#include "spkmsgbox.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
@@ -16,7 +12,5 @@ int main(int argc, char *argv[])
|
||||
|
||||
SpkStore store(false, LogPath);
|
||||
|
||||
SpkMsgBox::StaticExec("E", "F");
|
||||
|
||||
return QApplication::exec();
|
||||
}
|
||||
|
||||
@@ -12,12 +12,19 @@ SpkStore::SpkStore(bool aCli, QString &aLogPath)
|
||||
{
|
||||
mLogger = new SpkLogger(aLogPath);
|
||||
|
||||
// Singleton
|
||||
Q_ASSERT(Instance == nullptr);
|
||||
Instance = this;
|
||||
|
||||
// Finish all essential initialization after this.
|
||||
|
||||
mNetMgr = new QNetworkAccessManager(this);
|
||||
|
||||
// Finish all essential initialization before this.
|
||||
if(aCli)
|
||||
return;
|
||||
|
||||
// UI Initialization
|
||||
SpkUi::Initialize();
|
||||
mMainWindow = new SpkMainWindow;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user