Skip to content
New issue

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

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

Already on GitHub? # to your account

Improve condition to recognise read-only sketches #918

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

AlbyIanna
Copy link
Contributor

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
@ubidefeo

This comment was marked as outdated.

@AlbyIanna

This comment was marked as outdated.

@fstasi
Copy link
Contributor

fstasi commented Mar 24, 2022

@AlbyIanna
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
@fstasi

This comment was marked as outdated.

@per1234

This comment was marked as outdated.

@AlbyIanna AlbyIanna force-pushed the read-only-iot-sketches branch from ede63f6 to c0c257e Compare April 5, 2022 12:17
@AlbyIanna AlbyIanna changed the base branch from active-sketchbook to main April 5, 2022 12:17
@AlbyIanna AlbyIanna closed this Apr 5, 2022
@AlbyIanna AlbyIanna reopened this Apr 5, 2022
@AlbyIanna
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.

@per1234
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 AlbyIanna force-pushed the read-only-iot-sketches branch from c0c257e to 180b0fa Compare April 6, 2022 08:40
@AlbyIanna AlbyIanna requested a review from per1234 April 6, 2022 08:55
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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
topic: code Related to content of the project itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

thingProperties.h cannot be edited for local sketches
4 participants