Set default display option to be compact split view for debugger.

This commit is contained in:
mjbudd77 2021-07-17 15:01:22 -04:00
parent 31cbbebc8e
commit e49b40e6c3
1 changed files with 13 additions and 4 deletions

View File

@ -229,9 +229,8 @@ ConsoleDebugger::~ConsoleDebugger(void)
//----------------------------------------------------------------------------
void ConsoleDebugger::closeEvent(QCloseEvent *event)
{
QSettings settings;
//printf("Debugger Close Window Event\n");
settings.setValue("debugger/geometry", saveGeometry());
saveDisplayViews();
done(0);
deleteLater();
event->accept();
@ -239,9 +238,8 @@ void ConsoleDebugger::closeEvent(QCloseEvent *event)
//----------------------------------------------------------------------------
void ConsoleDebugger::closeWindow(void)
{
QSettings settings;
saveDisplayViews();
//printf("Close Window\n");
settings.setValue("debugger/geometry", saveGeometry());
done(0);
deleteLater();
}
@ -1270,6 +1268,14 @@ void ConsoleDebugger::loadDisplayViews(void)
{
char key[128];
QSettings settings;
bool prevStateSaved;
prevStateSaved = settings.value("debugger/prevStateSaved", false).toBool();
if ( !prevStateSaved )
{
setLayoutOption(2);
}
for (int i=0; i<2; i++)
{
@ -1379,6 +1385,9 @@ void ConsoleDebugger::saveDisplayViews(void)
// Save Window Geometry
settings.setValue("debugger/geometry", saveGeometry());
// Set Window
settings.setValue("debugger/prevStateSaved", true);
}
//----------------------------------------------------------------------------
void ConsoleDebugger::updateTabVisibility(void)