Comments (6)
This is not a bug, but is how the finish button is implemented. Let's say that you are in step 4 of 6 steps. The idea is that, if you press the finish button at step 4, you can see what the result would be using the default parameters for steps 5 and 6. Then, you can easily go on to customize steps 5 and 6 if you want.
Dumping you to step 6 at the end would help emphasize that the execution was made all the way to the finish step, but doesn't let you further customize unless you hit "back" a few times. But, dumping you to the last step would be more in line with how other wizards (ex. installers) behave.
However, you are not the first person to be confused by this behavior, and JC and I are thinking of ways to either make this behavior more intuitive, or to change the code such that the finish step's page is displayed at the end.
To the group:
Would it be more intuitive to you if we changed the "finish" button to say "preview" instead, keeping the current behavior? Or would you rather the finish step UI still be displayed?
from ctk.
FYI, Daniel has added the property in ctkWorkflow called "GoBackToOriginStepUponSuccess", with a default value of true. If you set this property to false for your workflow, you should see the finish step at the end.
So, we can debate whether the default property value should be true or false, but both implementations are there.
from ctk.
My vote is that it should not be the default (to go back to the origin step upon success)
from ctk.
Thanks for the information! This property would be fine, and I vote also for being false as default.
The bigger problem, however, is that the property does not work for me. It was true, as you said, and I set it to false in the constructor of the workflow, but I still see the original page when the computation finishes.
from ctk.
This GoBackToOriginStepUponSuccess property is rather buggy.
The "Finish" button executes the workflow steps. If GoBackToOriginStepUponSuccess is set to false then the current workflow step will be the last executed step, but the WorkflowStackedWidget still displays the original step.
This has a strange consequence: You cannot press the Next button, since you are at the last step, although the GUI shows that you are at the beginning step. If you press the Back button, then you get to the last but one step, and the GUI will show the same.
However, if you pressed the Finish button at the first step, then cannot press the Back button, since it is disabled.
from ctk.
It also contains other trivial fixes. I did not change the default value of the GoBackToOriginStepUponSuccess property, since I can fix it from my program, but it should be done in my opinion.
Now if the flag is on (still default), the Finish button performs the workflow steps, the actual page appears after entering into the individual steps, and after finishing the original page reappears. Until now the original page was visible during the whole process. If you want this, put the "emit q->currentStepChanged(this->CurrentStep);" line in an if (!GoBackToOriginStepUponSuccess) around line 418.
from ctk.
Related Issues (20)
- Issues with the use of multiple plugins for publishing and subscribing HOT 1
- CMAKE_INSTALL_PREFIX Not work on new Version HOT 3
- Build Problem HOT 1
- CTK:生成插件时,需要第三方库opencv 或者oNNXRuntime时,生成插件失败,如何解决? HOT 1
- Should be checking return code from QSqlQuery::exec
- found a bug in the file CTK/Plugins/org.commontk.eventadmin/tasks /ctkEASyncDeliverTasks.tpp HOT 1
- ctkRangeWidget, ctkDoubleRangeSlider setValue(), setRange() issues HOT 1
- How to appropriately use ctkPluginFrameworkLauncher::stop()
- Roadmap list of issues/enhancements for Visual DICOM Browser HOT 23
- Add issue template for creating CTK release
- CTKConfig.cmake includes ctkFunctionGeneratePluginUseFile.cmake but this file isn't installed HOT 1
- Improve ctkLanguageComboBox adding a special item called "Default" HOT 1
- "SQL worked" messages on the console HOT 8
- Event Admin plugin spams debug messages on initialization
- Can't build on linux with current slicer instructions HOT 10
- static Build issue
- ctkCollapsibleGroupBox Arrows Missing
- DICOM tag string handling issues
- Multiple CTK instance call with other with IPC
- 想问这个框架许可证的情况 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ctk.