Git: Separate internal plugin access API from plugin class

Plan is to hide the plugin class definition to the .cpp later.

Change-Id: I27f6d2dd23adb4f3ab47d99b0626956889d2750f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2024-01-15 10:48:03 +01:00
parent 4434b09d49
commit 892e7c0f3a
12 changed files with 59 additions and 59 deletions

View File

@@ -128,7 +128,7 @@ void InstantBlame::setup()
if (qobject_cast<const VcsBaseEditorWidget *>(widget))
return; // Skip in VCS editors like log or blame
const Utils::FilePath workingDirectory = GitPlugin::currentState().currentFileTopLevel();
const FilePath workingDirectory = currentState().currentFileTopLevel();
if (!refreshWorkingDirectory(workingDirectory))
return;
@@ -208,7 +208,7 @@ void InstantBlame::once()
connect(widget, &QPlainTextEdit::cursorPositionChanged,
this, [this] { m_blameMark.reset(); }, Qt::SingleShotConnection);
const Utils::FilePath workingDirectory = GitPlugin::currentState().topLevel();
const FilePath workingDirectory = currentState().topLevel();
if (!refreshWorkingDirectory(workingDirectory))
return;
}