Skip to content

Commit 16b5d3d

Browse files
committed
minor change
1 parent 432b8d3 commit 16b5d3d

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

civiltools.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,21 @@ def is_etabs_running(self, etabs=None):
852852
return False
853853
return True
854854

855+
def git_updates(self):
856+
from functions import update, progressbar
857+
if not update.internet():
858+
msg = "You are not connected to the Internet, please check your internet connection."
859+
QMessageBox.warning(None, 'update', str(msg))
860+
return
861+
if (QMessageBox.question(None, "update", ("update to latest version?!"),
862+
QMessageBox.Yes | QMessageBox.No) == QMessageBox.No):
863+
return
864+
update_win = progressbar.UpdateWindow()
865+
self.hsplitter.insertWidget(0, update_win)
866+
up = update.GitUpdate(branch)
867+
msg = up.git_update()
868+
update_win.label.setText(msg)
869+
855870
def run_section():
856871
import subprocess
857872
python_exe = 'pythonw'
@@ -890,21 +905,6 @@ def help():
890905
path = civiltools_path / "help" / "help.pdf"
891906
webbrowser.open_new(str(path))
892907

893-
def git_updates():
894-
from functions import update, progressbar
895-
if not update.internet():
896-
msg = "You are not connected to the Internet, please check your internet connection."
897-
QMessageBox.warning(None, 'update', str(msg))
898-
return
899-
if (QMessageBox.question(None, "update", ("update to latest version?!"),
900-
QMessageBox.Yes | QMessageBox.No) == QMessageBox.No):
901-
return
902-
update_win = progressbar.UpdateWindow()
903-
self.hsplitter.insertWidget(0, update_win)
904-
up = update.GitUpdate(branch)
905-
msg = up.git_update()
906-
update_win.label.setText(msg)
907-
908908
class SerialForm(serial_base, serial_window):
909909
def __init__(self, parent=None):
910910
super(SerialForm, self).__init__()

0 commit comments

Comments
 (0)