mirror of
https://github.com/august-alt/gpui.git
synced 2025-03-14 12:58:39 +03:00
wip: add mainWindow field to ScriptsSnapInPrivate
This commit is contained in:
parent
ce08884dec
commit
10217fb567
@ -64,6 +64,7 @@ void ScriptsSnapIn::onInitialize(QMainWindow *window)
|
||||
if (mainWindow)
|
||||
{
|
||||
d->localeName = mainWindow->getLanguage().toStdString();
|
||||
d->mainWindow = mainWindow;
|
||||
}
|
||||
|
||||
d->proxyViewModel->setSourceModel(d->viewModel.get());
|
||||
|
@ -7,6 +7,8 @@
|
||||
#include "scriptstreemodel.h"
|
||||
#include "scriptstreeproxymodel.h"
|
||||
|
||||
#include "../../gui/mainwindow.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QTranslator>
|
||||
|
||||
@ -25,6 +27,8 @@ public:
|
||||
|
||||
public:
|
||||
std::string policyPath = "";
|
||||
gpui::MainWindow *mainWindow = nullptr;
|
||||
|
||||
std::unique_ptr<ScriptsModel> userScriptsModel = std::make_unique<ScriptsModel>();
|
||||
std::unique_ptr<ScriptsModel> userPowerScriptsModel = std::make_unique<ScriptsModel>();
|
||||
std::unique_ptr<ScriptsModel> machineScriptsModel = std::make_unique<ScriptsModel>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user