Skip to content

Commit

Permalink
fix loadLeafs to only load if user is logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
yafesdev committed Nov 18, 2019
1 parent ddbc613 commit ebdfb98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name = 'SyncsketchGUI',
version = '1.1.0',
version = '1.1.1',
url = 'https://github.com/syncsketch/syncsketch-maya.git',
author = 'Syncsketch',
author_email = "dev@syncsketch.com",
Expand Down
3 changes: 2 additions & 1 deletion syncsketchGUI/lib/gui/syncsketchWidgets/mainWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def restore_ui_state(self):


reviewId = database.read_cache('target_review_id')
if reviewId:
if reviewId and self.current_user.is_logged_in() :
logger.info("Restoring reviewId section for : {} ".format(reviewId))
review = getReviewById(self.ui.browser_treeWidget, reviewId=reviewId)
logger.info("Restoring review section for : {} ".format(review))
Expand Down Expand Up @@ -826,6 +826,7 @@ def validate_review_url(self, target = None):
self.ui.ui_reviewSelection_hBoxLayout
]

#todo remove sideffect
if (target == "review") or (target == "media") or (target == uploadPlaceHolderStr):
enable_interface(ui_to_toggle, True)
self.ui.ui_status_label.update('Valid Review Selected.', color='LightGreen')
Expand Down

0 comments on commit ebdfb98

Please sign in to comment.