Added Open in New Window and Move to New Window as tab right-click options and Edit options (SpartanJ/ecode#629).

Added `Move Tab to Start` and `Move Tab to End` in tab right-click options (SpartanJ/ecode#630).
Added `--profile` CLI option (SpartanJ/ecode#634).
Added `--disable-plugins` CLI option (SpartanJ/ecode#635).
Moved `crashes` directory to profile directory (SpartanJ/ecode#639).
Added `Settings -> Terminal -> Close Terminal Tab on Exit` (SpartanJ/ecode#643).
This commit is contained in:
Martín Lucas Golini
2025-09-10 01:35:11 -03:00
parent 3a7e4add3a
commit 97a89902e2
13 changed files with 261 additions and 72 deletions

View File

@@ -257,8 +257,8 @@ class PluginRequestHandle {
protected:
PluginIDType mId{ 0 };
PluginImmediateResponse
mResponse; //! Some requests can be responded immediately, so the message comes in the handle
PluginImmediateResponse mResponse; //! Some requests can be responded immediately, so the
//! message comes in the handle
};
class PluginManager {
@@ -275,9 +275,8 @@ class PluginManager {
using OnLoadFileCb = std::function<void( const std::string&, const OnFileLoadedCb& )>;
PluginManager( const std::string& resourcesPath, const std::string& pluginsPath,
const std::string& configPath,
std::shared_ptr<ThreadPool> pool, const OnLoadFileCb& loadFileCb,
PluginContextProvider* context );
const std::string& configPath, std::shared_ptr<ThreadPool> pool,
const OnLoadFileCb& loadFileCb, PluginContextProvider* context );
~PluginManager();
@@ -368,6 +367,10 @@ class PluginManager {
void forEachPlugin( std::function<void( Plugin* )> fn );
void setPluginsDisabled( bool pluginsDisabled ) { mPluginsDisabled = pluginsDisabled; }
bool pluginsDisabled() const { return mPluginsDisabled; }
protected:
using SubscribedPlugins =
std::map<std::string, std::function<PluginRequestHandle( const PluginMessage& )>>;
@@ -392,6 +395,7 @@ class PluginManager {
UnorderedSet<Plugin*> mPluginsFSSubs;
bool mClosing{ false };
bool mPluginReloadEnabled{ false };
bool mPluginsDisabled{ false };
bool hasDefinition( const std::string& id );