Skip to content

Commit 0b42aa1

Browse files
committed
#97 解决了issue #9 的问题
1 parent 850d76a commit 0b42aa1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from gui.uis.windows.main_window.functions_main_window import *
2121
import sys
2222
import os
23+
import time
2324

2425
# IMPORT QT CORE
2526
# ///////////////////////////////////////////////////////////////
@@ -92,6 +93,11 @@ def btn_clicked(self):
9293
# OPEN PAGE pics
9394
if btn.objectName() == 'btn_page_pics':
9495
self.ui.left_menu.select_only_one(btn.objectName())
96+
try:
97+
self.ui.load_pages.gridLayout_2.itemAt(0).widget().setParent(None)
98+
self.ui.load_pages.gridLayout_2.removeWidget(self.ui.load_pages.gridLayout_2.itemAt(0).widget())
99+
except AttributeError:
100+
pass
95101
if not MainFunctions.left_column_is_visible(self):
96102
MainFunctions.toggle_left_column(self)
97103
MainFunctions.set_page(self, self.ui.load_pages.page_3)

resources/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"app_name": " Picf",
3-
"version": "v1.4",
3+
"version": "v1.5",
44
"copyright": "",
55
"year": 2021,
66
"theme_name": "default",
@@ -26,7 +26,7 @@
2626
"minimum": 0,
2727
"maximum": 240
2828
},
29-
"time_animation": 200,
29+
"time_animation": 0,
3030
"font": {
3131
"family": "Microsoft YaHei",
3232
"title_size": 11,

0 commit comments

Comments
 (0)