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

Option to show notes at start-up (2 gsettings keys: state has to be saved too) #66

Open
themighty1 opened this issue Apr 4, 2021 · 7 comments

Comments

@themighty1
Copy link

Hi, on gnome-shell 3.36.4 the notes are visible on the desktop.
I often lock the screen and when I return to machine to log in, the notes are not visible anymore.
I have to click the icon to toggle their visibility.
Is it something that is easily fixable?
@maoschanz , since you have more experience with gnome-shell, maybe you could give some pointers about what causes this behaviour. I could then make a PR.

@floe
Copy link

floe commented Jun 1, 2021

+1, happens to me as well, on 3.36.7.

@maoschanz
Copy link
Owner

maoschanz commented Jun 14, 2021

fixable

You're implying it's a bug? Your title made it seem like a bug, but if notes are shown when you ask them to be shown, everything is fine.

When the extension is loaded, notes are hidden by default, and it's a feature: loading notes can take time, and people don't want their session startup to be delayed for a few seconds because of an extension. In the future i could make an option for this maybe

@maoschanz maoschanz changed the title notes are not visible after lock screen Option to show notes at start-up (2 gsettings keys: state has to be saved too) Jun 14, 2021
@themighty1
Copy link
Author

@maoschanz , thanks for looking into this.
what i had in mind was LockScreen/UnlockScreen, not login/logout.
would be nice if the extension could remember if it was visible when lockScreen happens and restore its visibility when screen is unlocked.

@maoschanz
Copy link
Owner

Sadly from the point of view of the extension, there is no distinction between a login/logout and a locking/unlocking: all the code knows is that something enabled or disabled the extension

The meaning of the new title of the issue is that, as you say, if you enable this option, it'll remember whether it was visible or not the last time i was disabled. But there will still be no distinction between login and unlocking

@floe
Copy link

floe commented Jun 15, 2021

This would be very helpful - I tend to forget about my notes when they're not visible without me clicking the icon.

@themighty1
Copy link
Author

A temporary fix which worked for me:

insert here:

NOTES_MANAGER = new NotesManager();

the lines

NOTES_MANAGER = new NotesManager();

	if (Main.screenShield._activationTime > 0){
		// this is not the first login because screen lock
		// was already activated at least once
		NOTES_MANAGER._loadAllNotes();
		NOTES_MANAGER._showNotes();
	}

This will show all notes after unlock screen regardless of their previous show/hide state.

@945fc41467
Copy link

I tried with @glerroo’s branch (line 37 if I am right), and it seems it doesn’t not work anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants