mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-08-17 00:31:42 +02:00
Configuration
Core
Bridge
Controls
Handling
General
BrowserProcessHandler.cs
FileDialogHandler.cs
JavaScriptDialogHandler.cs
LifeSpanHandler.cs
RequestHandlerBase.cs
ContextMenuBase.cs
ContextMenuBrowser.cs
ContextMenuNotification.cs
KeyboardHandlerBrowser.cs
KeyboardHandlerNotification.cs
RequestHandlerBrowser.cs
ResourceHandlerNotification.cs
Notification
Other
Utils
FormBrowser.Designer.cs
FormBrowser.cs
FormBrowser.resx
FormManager.cs
TrayIcon.Designer.cs
TrayIcon.cs
Data
Plugins
Properties
Resources
Updates
bld
lib
subprocess
tests
video
.gitignore
LICENSE.md
Program.cs
README.md
Reporter.cs
TweetDuck.csproj
TweetDuck.sln
TweetDuck.sln.DotSettings
packages.config
16 lines
538 B
C#
16 lines
538 B
C#
using System;
|
|
using CefSharp;
|
|
|
|
namespace TweetDuck.Core.Handling.General{
|
|
sealed class BrowserProcessHandler : IBrowserProcessHandler{
|
|
void IBrowserProcessHandler.OnContextInitialized(){
|
|
using(IRequestContext ctx = Cef.GetGlobalRequestContext()){
|
|
ctx.SetPreference("browser.enable_spellchecking", Program.UserConfig.EnableSpellCheck, out string _);
|
|
}
|
|
}
|
|
|
|
void IBrowserProcessHandler.OnScheduleMessagePumpWork(long delay){}
|
|
void IDisposable.Dispose(){}
|
|
}
|
|
}
|