Skip to content

Commit

Permalink
fix: open example data from welcome guide, see #564
Browse files Browse the repository at this point in the history
  • Loading branch information
ElpadoCan committed Oct 5, 2024
1 parent a001b7c commit 9c11fdb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cellacdc/help/welcome.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os, sys
import pathlib
from functools import partial
import webbrowser

import pandas as pd
Expand Down Expand Up @@ -888,7 +888,7 @@ def saveSettings(self):
def openGUIsingleImage(self):
if self.mainWin is not None:
self.mainWin.launchGui()
self.mainWin.guiWin.openFile()
self.mainWin.guiWins[-1].openFile()
else:
self.guiWin = gui.guiWin(self.app)
self.guiWin.showAndSetSize()
Expand All @@ -897,7 +897,10 @@ def openGUIsingleImage(self):
def openGUIfolder(self, exp_path):
if self.mainWin is not None:
self.mainWin.launchGui()
self.mainWin.guiWin.openFolder(exp_path=exp_path)
guiWin = self.mainWin.guiWins[-1]
QTimer.singleShot(
200, partial(guiWin.openFolder, exp_path=exp_path)
)
else:
self.guiWin = gui.guiWin(self.app)
self.guiWin.showAndSetSize()
Expand Down

0 comments on commit 9c11fdb

Please sign in to comment.