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

#1647 TimerLab error when no slides selected or empty ppt #1715

Merged

Conversation

LiXiaoooowei
Copy link
Contributor

Fixes #1647

Tested in PPT2016.

Changes:

  • Greyed out TimerLab ribbon button when no slide is selected or ppt is empty.

  • Remove TimerPane when TimerLab is previously opened but no slides selected later.

@LiXiaoooowei LiXiaoooowei changed the title #1647-TimerLab-error-when-no-slides-selected-or-empty-ppt #1647 TimerLab error when no slides selected or empty ppt Aug 8, 2018
Copy link
Contributor

@initialshl initialshl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your enhancement. Code looks good. A small comment below.

@@ -0,0 +1,9 @@
namespace PowerPointLabs.TimerLab
{
internal static class NotesToTimer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I know why this class is called NotesToTimer? Or is there any better place to put IsTimerEnabled?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LiXiaoooowei Would you be updating this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@initialshl I am trying to follow the names set by other labs for similar functionalities, i.e. NotesToAudio and NotesToCaption.

Copy link
Contributor

@initialshl initialshl Jan 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I think that the NotesToAudio and NotesToCaption refers to the slide's speaker's notes (for text-to-speech). You may want to change it to just TimerLab.cs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@initialshl Code edited according to suggestion.

@leeyh20
Copy link
Contributor

leeyh20 commented Dec 16, 2018

@LiXiaoooowei Could this be tested on PPT2013?

@blewjy
Copy link
Contributor

blewjy commented Jan 26, 2019

Tested on PPT2013. Working as described!

@blewjy blewjy added the ok-2013 label Jan 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants