Skip to content

Commit

Permalink
Changed functionality to no longer clip overflowing minutes when hour…
Browse files Browse the repository at this point in the history
…s is deselected.

Eventually, I'll add more granular controls to timing output, but this will suffice for now.
  • Loading branch information
TheLittleDoc committed Jan 19, 2022
1 parent 4161a6b commit d5f7bc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions gamemaster.pyw
Expand Up @@ -17,6 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
# For old-times sake:
# uwu

import tkinter as tk
from tkinter import *
from PIL import ImageTk,Image
Expand Down
4 changes: 2 additions & 2 deletions gm_timing.py
Expand Up @@ -97,11 +97,11 @@ def run(self):
if settings_list["hours"] == True and settings_list["minutes"] == True and settings_list["seconds"] == True:
to_file = str("%02d" % (hours))+str(":")+str("%02d" % (mins))+str(":")+str("%02d" % (secs))
elif settings_list["hours"] == False and settings_list["minutes"] == True and settings_list["seconds"] == True:
to_file = str("%02d" % (mins))+str(":")+str("%02d" % (secs))
to_file = str("%02d" % (mins+(hours*60)))+str(":")+str("%02d" % (secs))
elif settings_list["hours"] == True and settings_list["minutes"] == True and settings_list["seconds"] == False:
to_file = str("%02d" % (hours))+str(":")+str("%02d" % (mins))
elif settings_list["hours"] == False and settings_list["minutes"] == True and settings_list["seconds"] == False:
to_file = str("%02d" % (mins))
to_file = str("%02d" % (mins+(hours*60)))
elif settings_list["hours"] == True and settings_list["minutes"] == False and settings_list["seconds"] == False:
to_file = str("%02d" % (hours))

Expand Down

0 comments on commit d5f7bc2

Please sign in to comment.