forked from qt-creator/qt-creator
Squish: Close "Take a tour" popup after startup
Change-Id: Ie5edf4a3a9a90b52e3a5e74e7e17e2bd66c38841 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -55,7 +55,7 @@ source("../../shared/welcome.py")
|
||||
source("../../shared/workarounds.py") # include this at last
|
||||
|
||||
# additionalParameters must be a list or tuple of strings or None
|
||||
def startQC(additionalParameters=None, withPreparedSettingsPath=True):
|
||||
def startQC(additionalParameters=None, withPreparedSettingsPath=True, cancelTour=True):
|
||||
global SettingsPath
|
||||
appWithOptions = ['"Qt Creator"' if platform.system() == 'Darwin' else "qtcreator"]
|
||||
if withPreparedSettingsPath:
|
||||
@@ -65,7 +65,10 @@ def startQC(additionalParameters=None, withPreparedSettingsPath=True):
|
||||
if platform.system() in ('Microsoft', 'Windows'): # for hooking into native file dialog
|
||||
appWithOptions.extend(('-platform', 'windows:dialogs=none'))
|
||||
test.log("Starting now: %s" % ' '.join(appWithOptions))
|
||||
return startApplication(' '.join(appWithOptions))
|
||||
appContext = startApplication(' '.join(appWithOptions))
|
||||
if cancelTour:
|
||||
clickButton(waitForObject(":Take a UI Tour.Cancel_QPushButton"))
|
||||
return appContext;
|
||||
|
||||
def startedWithoutPluginError():
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user