mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 01:56:31 +03:00
ecode: Fix in tooltip. Added static Text::wrapText. Fix export of syntax definitions.
eepp: Started working on a Git plugin.
This commit is contained in:
@@ -7,8 +7,8 @@ namespace ecode {
|
||||
Plugin::Plugin( PluginManager* manager ) :
|
||||
mManager( manager ),
|
||||
mThreadPool( manager->getThreadPool() ),
|
||||
mReady( false ), // All plugins will start as not ready until proved the contrary
|
||||
mLoading( true ) // All plugins will start as loading until the load is complete, this is to
|
||||
mReady( false ), // All plugins will start as "not ready" until proven the contrary
|
||||
mLoading( true ) // All plugins will start as "loading" until the load is complete, this is to
|
||||
// avoid concurrency issues
|
||||
{}
|
||||
|
||||
@@ -45,6 +45,10 @@ PluginManager* Plugin::getManager() const {
|
||||
return mManager;
|
||||
}
|
||||
|
||||
String Plugin::i18n( const std::string& key, const String& def ) const {
|
||||
return getManager()->getUISceneNode()->i18n( key, def );
|
||||
}
|
||||
|
||||
void Plugin::onFileSystemEvent( const FileEvent& ev, const FileInfo& file ) {
|
||||
if ( ev.type != FileSystemEventType::Modified || mShuttingDown || isLoading() )
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user