elementary / code

Code editor designed for elementary OS
https://elementary.io
GNU General Public License v3.0
476 stars 113 forks source link

Closing second view does not update settings #746

Closed jeremypw closed 3 years ago

jeremypw commented 4 years ago

I have searched open and closed issues for duplicates.

Describe the bug

Closing a second view while it still has documents open does not update the settings so that if the app is closed and reopened, the second view is opened again.

To Reproduce

Steps to reproduce the behavior:

  1. Open a document in the primary view
  2. Click on App Menu/Add New View
  3. Open a document in the second view
  4. Close the second view
  5. Close the app
  6. Inspection of the settings shows that io.elementary.code.settings.opened-files-view2 is not empty
  7. Reopen the app. The second view reopens with the same docs

Expected behavior

The restored state should match the state when the app closed.

Elementary OS 5.1

Please check what applies: I'm using the latest version from git that I've manually compiled

jeremypw commented 4 years ago

To permanently close the second view you must close all the documents in it.

jeremypw commented 3 years ago

Closing as SplitView is now discontinued.