From 0aa38726f0f793d6d3dcbaf47fc7a4a7da9e3cb9 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Wed, 17 Nov 2021 04:29:51 +0100 Subject: [PATCH] Rename --- new_task.py => import_task.py | 2 +- main.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) rename new_task.py => import_task.py (97%) diff --git a/new_task.py b/import_task.py similarity index 97% rename from new_task.py rename to import_task.py index 81d9e2e..3994dbd 100644 --- a/new_task.py +++ b/import_task.py @@ -3,7 +3,7 @@ from PySide2 import QtGui, QtWidgets from task_completer import TaskCompleter -class NewTask(QtWidgets.QDialog): +class ImportTask(QtWidgets.QDialog): def __init__(self, parent, *args, **kwargs): super().__init__(parent, *args, **kwargs) self.setWindowTitle("New Tasks") diff --git a/main.py b/main.py index 8bfa6fd..b466196 100755 --- a/main.py +++ b/main.py @@ -9,7 +9,7 @@ from PySide2.QtWidgets import QMessageBox from data import Tasks, Log, Data from exceptions import FimeFrackingException -from new_task import NewTask +from import_task import ImportTask from task_edit import TaskEdit from report import Report from util import get_screen_height @@ -28,8 +28,8 @@ class App: self.menu = QtWidgets.QMenu() - self.new_task = NewTask(None) - self.new_task.accepted.connect(self.new_task_imported) + self.import_task = ImportTask(None) + self.import_task.accepted.connect(self.new_task_imported) self.taskEdit = TaskEdit(None) self.taskEdit.accepted.connect(self.tasks_edited) @@ -46,8 +46,8 @@ class App: @QtCore.Slot() def new_task_imported(self): - if self.new_task.task_text: - self.tasks.add_jira_task(self.new_task.task_text) + if self.import_task.task_text: + self.tasks.add_jira_task(self.import_task.task_text) self.update_tray_menu() @QtCore.Slot() @@ -134,8 +134,8 @@ class App: @QtCore.Slot() def new_task_slot(self): - self.new_task.reset_task_text() - self.new_task.show() + self.import_task.reset_task_text() + self.import_task.show() @QtCore.Slot() def edit_tasks(self):