File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ def calculate_checksum(data):
23
23
return hashlib .sha256 (data .encode ()).hexdigest ()
24
24
25
25
def get_playtime_file_path ():
26
- """Get the path to the playtime file in the AppData directory."""
27
26
appdata_dir = os .getenv ('APPDATA' )
28
27
playtime_dir = os .path .join (appdata_dir , 'MineTimer' )
29
28
if not os .path .exists (playtime_dir ):
@@ -37,7 +36,6 @@ def write_playtime(file_path, playtime):
37
36
file .write (f"{ data } \n { checksum } " )
38
37
39
38
def read_playtime (file_path ):
40
- """Read the playtime from the file and verify the checksum."""
41
39
if not os .path .exists (file_path ):
42
40
write_playtime (file_path , 0 )
43
41
return 0
@@ -157,7 +155,8 @@ def hide_window():
157
155
def open_website ():
158
156
webbrowser .open ("https://www.goofert.org/" )
159
157
160
- def open_github ():webbrowser .open ("https://github.com/Goofert42/MineTimer" )
158
+ def open_github ():
159
+ webbrowser .open ("https://github.com/Goofert42/MineTimer" )
161
160
162
161
def add_to_startup ():
163
162
try :
@@ -238,4 +237,4 @@ def create_gui(startup=False):
238
237
startup = "--startup" in sys .argv
239
238
tray_thread = threading .Thread (target = run_tray_icon , daemon = True )
240
239
tray_thread .start ()
241
- create_gui (startup )
240
+ create_gui (startup )
You can’t perform that action at this time.
0 commit comments