mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-27 15:15:47 +02:00
17 lines
545 B
C#
17 lines
545 B
C#
using CefSharp;
|
|
using System;
|
|
|
|
namespace TweetDck.Core.Handling{
|
|
class BrowserProcessHandler : IBrowserProcessHandler{
|
|
void IBrowserProcessHandler.OnContextInitialized(){
|
|
using(IRequestContext ctx = Cef.GetGlobalRequestContext()){
|
|
string err;
|
|
ctx.SetPreference("browser.enable_spellchecking", Program.UserConfig.EnableSpellCheck, out err);
|
|
}
|
|
}
|
|
|
|
void IBrowserProcessHandler.OnScheduleMessagePumpWork(long delay){}
|
|
void IDisposable.Dispose(){}
|
|
}
|
|
}
|