Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improve condition to recognise read-only sketches #918

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

Merged
AlbyIanna merged 1 commit into main from read-only-iot-sketches
Apr 7, 2022

Conversation

Copy link
Contributor

@AlbyIanna AlbyIanna commented Mar 17, 2022

Motivation

The condition to check if a sketch must be shown in read-only mode is too mild. For example, a thingProperties.h file shouldn't be read-only if it's not inside an IoT sketch

Change description

Check if it's an IoT sketch.

Reviewer checklist

  • PR addresses a single concern.
  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • PR title and description are properly filled.
  • Docs have been added / updated (for bug fixes / features)

Copy link
Contributor

@fstasi fstasi left a comment

Choose a reason for hiding this comment

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

lgtm

@per1234 per1234 added the topic: code Related to content of the project itself label Mar 17, 2022
@per1234 per1234 linked an issue Mar 18, 2022 that may be closed by this pull request

This comment was marked as outdated.

This comment was marked as outdated.

Copy link
Contributor

fstasi commented Mar 24, 2022

Copy link
Contributor Author

@AlbyIanna does this fix the following?

Yes it fixes #917.

As per #866, no, this PR only concerns read-only files that cannot be edited, and not read-only files that cannot be closed. Anyway, I believe #866 has already been fixed in another PR.

@fstasi fstasi requested a review from ubidefeo April 4, 2022 14:53
@fstasi fstasi closed this Apr 4, 2022
@fstasi fstasi reopened this Apr 4, 2022

This comment was marked as outdated.

This comment was marked as outdated.

@AlbyIanna AlbyIanna changed the base branch from active-sketchbook to main April 5, 2022 12:17
Copy link
Contributor Author

@fstasi @per1234 I've rebased this branch on main, so now we don't need to wait for #912.
@ubidefeo as soon as the CI completes you can give it a try.

Copy link
Contributor

per1234 commented Apr 6, 2022

I believe #866 has already been fixed in another PR.

It has not been fixed:

image

AlbyIanna reacted with thumbs up emoji

Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

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

It works as expected for me now.
Thanks @AlbyIanna!

@AlbyIanna AlbyIanna merged commit 46a3466 into main Apr 7, 2022
@AlbyIanna AlbyIanna deleted the read-only-iot-sketches branch April 7, 2022 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@per1234 per1234 per1234 approved these changes

@francescospissu francescospissu Awaiting requested review from francescospissu

@ubidefeo ubidefeo Awaiting requested review from ubidefeo

+1 more reviewer

@fstasi fstasi fstasi approved these changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
topic: code Related to content of the project itself
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

thingProperties.h cannot be edited for local sketches

AltStyle によって変換されたページ (->オリジナル) /