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

Output Styling (CSS Stylesheet) path is empty by default and doesn't persist through Revit restart #1204

Closed
gsruff opened this issue Mar 26, 2021 · 3 comments

Comments

@gsruff
Copy link

gsruff commented Mar 26, 2021

Describe the bug
In Settings->UI / UX->Output Window->Output Styling (CSS Stylesheet), the configured path is empty by default. Selecting Reset restores the default path. "Just Save Settings" or "Save Settings and Reload" applies the setting and causes the CSS file to be used correctly, but this setting does not persist through restarting Revit.

To Reproduce

  1. Open the pyRevit settings window and expand the UI / UX settings group.
  2. Confirm that Output Styling (CSS Stylesheet) path is empty by default.
  3. Click "Reset" to restore the default path or the ellipses button to specify a custom path.
  4. Click "Just Save Settings" or "Save Settings and Reload".
  5. Confirm CSS style is being applied to the output window.
  6. Restart Revit.
  7. See steps 1 & 2.

Expected behavior
The Output Styling file path setting is set to the included CSS file by default. Resetting this or configuring a custom path persists through restarts of Revit.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10 Pro 20H2 19042.870
  • pyRevit v4.8.6.0
@eirannejad
Copy link
Collaborator

So I made a change for pyRevit to always use it's internal preset path by default and does not store this default path in the config file. This is mainly to support more than one pyRevit clones on the machine. Is the output window losing styling for you on restart?!

@gsruff
Copy link
Author

gsruff commented Mar 29, 2021

Correct--the output window is losing styling on restart. Thanks for reviewing!

@eirannejad
Copy link
Collaborator

I think this is the fix that I already made. If I would change the styling to my custom, it would not save that change. It's fixed now :D fingers crossed 😅

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

No branches or pull requests

2 participants