mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-01 18:50:16 +03:00
Various general optimizations, inlined a bunch of functions, did a bunch of optimizations in UICodeEditor::drawMinimap, render times are about +10% faster for some common ecode escenarios.
This commit is contained in:
@@ -68,7 +68,7 @@ static constexpr const char* GIT_STASH_TOOLTIP_CLASS = "git-stash-tooltip";
|
||||
class GitPlugin : public PluginBase {
|
||||
public:
|
||||
static PluginDefinition Definition() {
|
||||
return { "git", "Git", "Git integration", GitPlugin::New, { 0, 1, 5 }, GitPlugin::NewSync };
|
||||
return { "git", "Git", "Git integration", GitPlugin::New, { 0, 2, 0 }, GitPlugin::NewSync };
|
||||
}
|
||||
|
||||
static Plugin* New( PluginManager* pluginManager );
|
||||
|
||||
@@ -235,7 +235,7 @@ void ConsoleCommands::cmdImgResize( const std::vector<String>& params ) {
|
||||
myPath = params[3].toUtf8();
|
||||
|
||||
if ( params.size() > 4 ) {
|
||||
saveType = Image::extensionToSaveType( params[4] );
|
||||
saveType = Image::extensionToSaveType( params[4].toUtf8() );
|
||||
}
|
||||
|
||||
if ( params.size() > 5 ) {
|
||||
@@ -274,7 +274,7 @@ void ConsoleCommands::cmdImgThumbnail( const std::vector<String>& params ) {
|
||||
myPath = params[3].toUtf8();
|
||||
|
||||
if ( params.size() > 4 ) {
|
||||
saveType = Image::extensionToSaveType( params[4] );
|
||||
saveType = Image::extensionToSaveType( params[4].toUtf8() );
|
||||
}
|
||||
} else {
|
||||
myPath = mApp->getFilePath();
|
||||
@@ -306,7 +306,7 @@ void ConsoleCommands::cmdImgCenterCrop( const std::vector<String>& params ) {
|
||||
myPath = params[3].toUtf8();
|
||||
|
||||
if ( params.size() > 4 ) {
|
||||
saveType = Image::extensionToSaveType( params[4] );
|
||||
saveType = Image::extensionToSaveType( params[4].toUtf8() );
|
||||
}
|
||||
} else {
|
||||
myPath = mApp->getFilePath();
|
||||
@@ -336,7 +336,7 @@ void ConsoleCommands::cmdImgScale( const std::vector<String>& params ) {
|
||||
myPath = params[2].toUtf8();
|
||||
|
||||
if ( params.size() > 3 ) {
|
||||
saveType = Image::extensionToSaveType( params[3] );
|
||||
saveType = Image::extensionToSaveType( params[3].toUtf8() );
|
||||
}
|
||||
|
||||
if ( params.size() > 4 ) {
|
||||
|
||||
Reference in New Issue
Block a user