Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On startup, plugin opens "Acquisition / Reconstruction" tab instead of "LC Calibration" tab #254

Closed
talonchandler opened this issue Nov 7, 2022 · 1 comment · Fixed by #256
Assignees
Labels
bug Something isn't working
Milestone

Comments

@talonchandler
Copy link
Collaborator

Annoyingly, Qt Creator sets the startup tab focus to the last tab you were editing when you save the .ui file, so when I edit the .ui file I sometimes accidentally change the tab focus.

The current behavior is an example of this problem: on startup the plugin opens to the "Acquisition / Reconstruction" tab instead of the expected "LC Calibration" tab.

@ziw-liu would you mind adding a couple lines to the main_widget constructor to fix the tab focus?

@talonchandler talonchandler added this to the 0.3.0 milestone Nov 7, 2022
@ziw-liu
Copy link
Contributor

ziw-liu commented Nov 7, 2022

Problematic line:

self.tabWidget.setCurrentIndex(1)

Changing From (1) to (0) solves the issue.
@talonchandler Do we want to modify it in gui.UI_Form or override in main_widget.MainWidget?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants