Skip to content

Commit 6ed3b2d

Browse files
authored
Update main.py
1 parent 4151ad8 commit 6ed3b2d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

source/main.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@
88
import scripts.utils as u
99
from components.btn import Button
1010
from components.block import Block
11+
from scripts.updates.updater import checkForUpdates
1112

1213
def main():
1314
pygame.init()
1415
pygame.mixer.init()
1516
cfg.DISPLAYSURF = pygame.display.set_mode((cfg.WIN_WIDTH, cfg.WIN_HEIGHT))
1617
cfg.FPSCLOCK = pygame.time.Clock()
1718
pygame.display.set_caption("Sudoku")
18-
pygame.display.set_icon(cfg.ASSETS[7])
19+
pygame.display.set_icon(pygame.image.load('./assets/icons/logo.ico'))
20+
21+
if checkForUpdates() == "UPDATE_SUCESS": u.close()
1922

2023
cfg.FONT_CFG = [
2124
pygame.font.Font("./assets/font/YatraOne-Regular.ttf", 20),
@@ -408,4 +411,4 @@ def scoreTable():
408411
cfg.manager.addState("exit", u.close)
409412

410413
cfg.manager.changeState("menu")
411-
main()
414+
main()

0 commit comments

Comments
 (0)