Skip to content

Conversation

@7aske
Copy link
Contributor

@7aske 7aske commented Jan 22, 2025

Might be useful for someone that wants to open they're viewing in a slicer for immediate printing.

Added a simple .conf file option to specify an external command or an absolute path to a program to open the current file with ALT+S shortcut.
Added a ~ expand to filename provided via command line arguments.

Copy link
Member

@DeveloperPaul123 DeveloperPaul123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good and I'd be happy to merge this. Please convert tabs to spaces though (1 tab = 4 spaces for this project).

src/window.cpp Outdated
orthographic_action->setChecked(true);
}

QString path = settings.value(OPEN_EXTERNAL_KEY, "cura5").toString();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would make the default be an empty string so the user has to set it if they intend to use this feature.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a file dialog when the action is invoked with an empty string. If the user has selected a file it is stored in the .conf file and the ui is updated to reflect that.

@DeveloperPaul123
Copy link
Member

explorer_2025-01-22_16-41-37.mp4

Looks like it works well! Thanks

@DeveloperPaul123 DeveloperPaul123 merged commit c61b4d1 into fstl-app:master Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants