Skip to content

Commit 51daadb

Browse files
committed
repair automatic startup
1 parent 825df37 commit 51daadb

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

dosview/__init__.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -1092,9 +1092,23 @@ def __init__(self, args):
10921092
self.file_path = args.file_path
10931093
self.initUI()
10941094

1095+
10951096
self.plot_tab = None
10961097
self.airdos_tab = None
10971098

1099+
self.solve_startup_args()
1100+
1101+
1102+
def solve_startup_args(self):
1103+
1104+
if self.args.file_path:
1105+
print("Oteviram zalozku s logem")
1106+
self.openPlotTab()
1107+
1108+
if self.args.airdos:
1109+
print("Oteviram zalozku s airdosem")
1110+
self.openAirdosTab()
1111+
10981112
def updateStackedWidget(self):
10991113
print("Updating stacked widget")
11001114
print(self.tab_widget.count())
@@ -1142,15 +1156,6 @@ def initUI(self):
11421156

11431157
self.tab_widget = QTabWidget()
11441158

1145-
1146-
if self.args.file_path:
1147-
print("Oteviram zalozku s logem")
1148-
self.openPlotTab()
1149-
1150-
if self.args.airdos:
1151-
print("Oteviram zalozku s airdosem")
1152-
self.openAirdosTab()
1153-
11541159
self.tab_widget.setCurrentIndex(0)
11551160
self.tab_widget.setTabsClosable(True)
11561161

@@ -1234,11 +1239,6 @@ def main():
12341239

12351240
print(args)
12361241

1237-
if not args.file_path:
1238-
pass
1239-
1240-
print("...", args.file_path)
1241-
12421242
pg.setConfigOption('background', 'w')
12431243
pg.setConfigOption('foreground', 'gray')
12441244

dosview/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env python3
22
# -*- coding: UTF-8 -*-
3-
__version__ = "0.1.15"
3+
__version__ = "0.1.16"

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def run(self):
3737
setup(
3838
name='dosview',
3939
#version= dosview.__version__,
40-
version="0.1.15",
40+
version="0.1.16",
4141
description='Dosview is a simple graphical log viewer and control interface for Universial Scientific Technologies (UST) dosimeters.',
4242
long_description=long_description,
4343
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)