Start: Allow to not show start page on file open

This commit is contained in:
Yorik van Havre
2018-08-09 17:04:50 -03:00
committed by Yorik van Havre
parent 36cd5a55cf
commit 1007c822d6
5 changed files with 46 additions and 6 deletions

View File

@@ -73,7 +73,7 @@ void StartGui::Workbench::activated()
QByteArray utf8Title = title.toUtf8();
QByteArray cmd;
QTextStream str(&cmd);
str << "import WebGui" << endl;
str << "import WebGui,sys,Start" << endl;
str << "from StartPage import StartPage" << endl;
str << endl;
str << "class WebPage(object):" << endl;
@@ -101,6 +101,7 @@ void StartGui::Workbench::activated()
str << " self.pargrp.Detach(self.webPage)" << endl;
str << endl;
str << "webView=WebView()" << endl;
str << "StartPage.checkPostOpenStartPage()" << endl;
Base::Interpreter().runString(cmd);
// Gui::Command::runCommand(Gui::Command::Gui, cmd);