[pitivi] project: remove unused 'ignore_unsaved_changes' param
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] project: remove unused 'ignore_unsaved_changes' param
- Date: Tue, 19 Jun 2018 12:38:04 +0000 (UTC)
commit b2f19ea312de8cf17eacf9091cf4eb95ae85b447
Author: HarishFulara07 <harish14143 iiitd ac in>
Date: Tue Jun 19 13:43:48 2018 +0530
project: remove unused 'ignore_unsaved_changes' param
pitivi/project.py | 8 +-------
tests/test_media_library.py | 2 +-
2 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index 1fb84096..bb14abf1 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -495,15 +495,9 @@ class ProjectManager(GObject.Object, Loggable):
return True
- def newBlankProject(self, ignore_unsaved_changes=False):
+ def newBlankProject(self):
"""Creates a new blank project and sets it as the current project.
- Args:
- ignore_unsaved_changes (Optional[bool]): If True, forces
- the creation of a new project without prompting the user about
- unsaved changes. This is an "extreme" way to reset Pitivi's
- state.
-
Returns:
bool: Whether the project has been created successfully.
"""
diff --git a/tests/test_media_library.py b/tests/test_media_library.py
index f0864f45..52ed3911 100644
--- a/tests/test_media_library.py
+++ b/tests/test_media_library.py
@@ -65,7 +65,7 @@ class BaseTestMediaLibrary(common.TestCase):
if project_uri:
self.app.project_manager.loadProject(project_uri)
else:
- self.app.project_manager.newBlankProject(ignore_unsaved_changes=True)
+ self.app.project_manager.newBlankProject()
self.app.project_manager.current_project.connect(
"loaded", self.projectLoadedCb)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]