forked from teamnwah/openmw-tes3coop
Partially address feature #854 by reading the status bar setting from opencs.ini. Missing GUI update that will affect new top level windows.
This commit is contained in:
parent
0ec20b23aa
commit
e4b836608c
1 changed files with 5 additions and 1 deletions
|
@ -98,6 +98,10 @@ void CSVDoc::View::setupViewMenu()
|
||||||
mShowStatusBar = new QAction (tr ("Show Status Bar"), this);
|
mShowStatusBar = new QAction (tr ("Show Status Bar"), this);
|
||||||
mShowStatusBar->setCheckable (true);
|
mShowStatusBar->setCheckable (true);
|
||||||
connect (mShowStatusBar, SIGNAL (toggled (bool)), this, SLOT (toggleShowStatusBar (bool)));
|
connect (mShowStatusBar, SIGNAL (toggled (bool)), this, SLOT (toggleShowStatusBar (bool)));
|
||||||
|
std::string showStatusBar =
|
||||||
|
CSMSettings::UserSettings::instance().settingValue("Display/show statusbar").toStdString();
|
||||||
|
if(showStatusBar == "true")
|
||||||
|
mShowStatusBar->setChecked(true);
|
||||||
view->addAction (mShowStatusBar);
|
view->addAction (mShowStatusBar);
|
||||||
|
|
||||||
QAction *filters = new QAction (tr ("Filters"), this);
|
QAction *filters = new QAction (tr ("Filters"), this);
|
||||||
|
@ -650,4 +654,4 @@ void CSVDoc::View::run (const std::string& profile, const std::string& startupIn
|
||||||
void CSVDoc::View::stop()
|
void CSVDoc::View::stop()
|
||||||
{
|
{
|
||||||
mDocument->stopRunning();
|
mDocument->stopRunning();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue