mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-03 20:06:58 +03:00
Redo the console window. Log is now a page. Console window has relevant pages.
Dirty fix for screenshot thumbnail generation. Needs more QTimer.
This commit is contained in:
parent
5179aed3a0
commit
421a46e3d3
30 changed files with 547 additions and 329 deletions
|
|
@ -48,11 +48,12 @@ QString ModFolderPage::id()
|
|||
return m_id;
|
||||
}
|
||||
|
||||
ModFolderPage::ModFolderPage(std::shared_ptr<ModList> mods, QString id, QString iconName,
|
||||
ModFolderPage::ModFolderPage(BaseInstance * inst, std::shared_ptr<ModList> mods, QString id, QString iconName,
|
||||
QString displayName, QString helpPage, QWidget *parent)
|
||||
: QWidget(parent), ui(new Ui::ModFolderPage)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
m_inst = inst;
|
||||
m_mods = mods;
|
||||
m_id = id;
|
||||
m_displayName = displayName;
|
||||
|
|
@ -72,6 +73,13 @@ ModFolderPage::~ModFolderPage()
|
|||
delete ui;
|
||||
}
|
||||
|
||||
bool ModFolderPage::shouldDisplay()
|
||||
{
|
||||
if(m_inst)
|
||||
return !m_inst->isRunning();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ModFolderPage::modListFilter(QKeyEvent *keyEvent)
|
||||
{
|
||||
switch (keyEvent->key())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue