Skip to content

Commit

Permalink
#97 解决了issue #9 的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
FuryMartin committed Dec 20, 2021
1 parent 850d76a commit 0b42aa1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from gui.uis.windows.main_window.functions_main_window import *
import sys
import os
import time

# IMPORT QT CORE
# ///////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -92,6 +93,11 @@ def btn_clicked(self):
# OPEN PAGE pics
if btn.objectName() == 'btn_page_pics':
self.ui.left_menu.select_only_one(btn.objectName())
try:
self.ui.load_pages.gridLayout_2.itemAt(0).widget().setParent(None)
self.ui.load_pages.gridLayout_2.removeWidget(self.ui.load_pages.gridLayout_2.itemAt(0).widget())
except AttributeError:
pass
if not MainFunctions.left_column_is_visible(self):
MainFunctions.toggle_left_column(self)
MainFunctions.set_page(self, self.ui.load_pages.page_3)
Expand Down
4 changes: 2 additions & 2 deletions resources/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"app_name": " Picf",
"version": "v1.4",
"version": "v1.5",
"copyright": "",
"year": 2021,
"theme_name": "default",
Expand All @@ -26,7 +26,7 @@
"minimum": 0,
"maximum": 240
},
"time_animation": 200,
"time_animation": 0,
"font": {
"family": "Microsoft YaHei",
"title_size": 11,
Expand Down

0 comments on commit 0b42aa1

Please sign in to comment.