Saveyour-Team / Saveyour

https://saveyour.herokuapp.com/
Apache License 2.0
1 stars 0 forks source link

Google Calendar module opening 3 times on login. #37

Closed NateFuller closed 9 years ago

NateFuller commented 9 years ago

Description

After logging in on the WeeklyToDo branch, 3 instances of the Google Calendar module open.

Screens

multiple_cals

NateFuller commented 9 years ago

This is actually happening on Master for me as well. No clue why... Giving this high priority

DeveloperTommy commented 9 years ago

I believe it's happening in master due to switching from WeeklyToDo because it saves 3 module data. That's why on master it'll open three since the modules are loaded based on saved user data. I think the problem lies in WeeklyToDo. Don't have access to a right now because of the TEDx conference, but I'll try to take a look at it.

DeveloperTommy commented 9 years ago

Try creating a new user and logging in with that in master

DeveloperTommy commented 9 years ago

Computer* and later*

NateFuller commented 9 years ago

Okay so I create a user, it spawns 1. Log out and log back in, it spawns 2. Keeps doing 2 on repeat logout/login.

Then I create a task in WeeklyToDo, log out, log in, and it spawns 3. Logout/login it keeps spawning 3.

Create another task in WeeklyTodo, log out, log in, and it spawns 4. I think I'm starting to see a pattern. Perhaps on the first time the Google Calendar module is getting loaded before the WeeklyToDo which is making it only spawn on G-Cal on the first?

DeveloperTommy commented 9 years ago

Hmm. It might have something to do with the saving and loading logic as well as I suspect there's a bug being spawned in loggedInWindow.xaml where a new Google calendar module is being spawned there.

DeveloperTommy commented 9 years ago

Oh, also I think there was a recent merge to master from WeeklyToDo, so the bug might actually be in both those branches.

justin-guan commented 9 years ago

I'm not 100% sure on this, but I remember when pressing the left and right buttons on WeeklyToDo, it would cause more Google calendar modules to get created when I logged in the next time. I'm not really available to further test this, but if it is the case, then there might be a problem with the save/load function or the "onLostFocus" event.

bpteich commented 9 years ago

We might want to add a check in Shell to ensure only one copy is ever loaded. I think I did that for some other module at one point.

NateFuller commented 9 years ago

It seems that whenever the Weekly Todo module is updated (i.e. a task is added or removed) it will just +1 more instance of it the next time you login.

NateFuller commented 9 years ago

@DeveloperTommy fixed this with commit a485403