-
Notifications
You must be signed in to change notification settings - Fork 104
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
#1647 TimerLab error when no slides selected or empty ppt #1715
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
@LiXiaoooowei Could this be tested on PPT2013? |
Tested on PPT2013. Working as described! |
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.