Skip to content

Commit e0e816d

Browse files
author
Sascha Goldhofer
committed
Refactor move method to owner
1 parent 0210f68 commit e0e816d

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

ProjectListener.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
import sublime_plugin
33

44
import FuzzyFilePath.controller as controller
5-
from FuzzyFilePath.project.get_project_id import get_project_id
65

76

87
ID = "ProjectListener"
98

9+
1010
class ProjectListener(sublime_plugin.EventListener):
1111
""" listens on window changes, delegating events to controller """
1212

@@ -39,3 +39,10 @@ def on_project_activated(self, view):
3939
if not window:
4040
return False
4141
controller.on_project_activated(window)
42+
43+
44+
def get_project_id(window):
45+
project_name = window.project_file_name()
46+
if project_name:
47+
return project_name
48+
return window.id()

common/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,4 @@ def sanitize(settings_object):
136136

137137
def verbose(*args):
138138
if get("log") is True:
139-
print("FFP\tSettings", *args)
139+
print("FFP\t", "Settings", *args)

project/get_project_id.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)