Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Commit 235a0d4

Browse files
authored
1.6
1 parent 956f3bc commit 235a0d4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

eclient.pyw

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ usr_accnt = getpass.getuser()
2727
if os.path.exists("C:\\users\\{}\\AppData\\Roaming\\.minecraft"):
2828
mc_dir = r"C:\\users\\{}\\AppData\\Roaming\\.minecraft".format(usr_accnt)
2929
else:
30-
mc_dir = r"{}\.minecraft".format(currn_dir)
30+
mc_dir = r"C:\\users\\{}\\AppData\\Roaming\\.minecraft".format(usr_accnt)
3131
os_name = platform.platform()
3232
def update():
3333
os.system("python update.py")
3434
sys.exit(0)
3535

3636
def con():
37-
pass
3837
top.destroy()
38+
root.wm_attributes("-disabled", False)
3939
response = requests.get("https://api.github.com/repos/v-pun215/eClient/releases/latest")
4040
lv = response.json()["name"]
4141
if not lv == "1.5":
@@ -200,8 +200,9 @@ background = canvas.create_image(
200200
image=background_img)
201201

202202

203-
if not lv == "v1.5":
203+
if not lv == "v1.6":
204204
print("Update available!")
205+
root.wm_attributes("-disabled", True)
205206
top= Toplevel(root)
206207
top.geometry("450x200")
207208
top.title("Update Available: {}".format(lv))
@@ -341,7 +342,7 @@ def checksettings():
341342
f.write("taskkill /f /im python.exe\n") #frees up cpu and memory
342343
f.write("yeah.cmd")
343344
f.close()
344-
root.after(23000, lambda: t2.start())
345+
root.after(5000, lambda: t2.start())
345346

346347

347348

@@ -352,8 +353,8 @@ window_running = True
352353
pb1.start()
353354
checksettings()
354355
#root.after(20000, lambda: pb1.stop())
355-
root.after(24000, lambda: root.withdraw())
356-
root.after(30000, lambda: root.destroy())
356+
root.after(5000, lambda: root.withdraw())
357+
root.after(7000, lambda: root.destroy())
357358

358359

359360

0 commit comments

Comments
 (0)