feat: update SDK and GUI versions, add debugger protection settings
- Updated SDK_DECODER_SEMVER to "1.3.0" and GUI_SEMVER to "1.2.4" in config.ini. - Updated MailViewer component to handle PDF already open error and improved iframe handling. - Removed deprecated useMsgConverter setting from settings page. - Added IsDebuggerRunning function to check for attached debuggers and quit the app if detected. - Enhanced PDF viewer to prevent infinite loading and improved error handling. Co-Authored-By: Laky-64 <iraci.matteo@gmail.com>
This commit is contained in:
11
app.go
11
app.go
@@ -101,12 +101,12 @@ func (a *App) ReadMSG(filePath string, useExternalConverter bool) (*internal.Ema
|
||||
if useExternalConverter {
|
||||
return internal.ReadMsgFile(filePath)
|
||||
}
|
||||
return internal.OSSReadMsgFile(filePath)
|
||||
return internal.ReadMsgFile(filePath)
|
||||
}
|
||||
|
||||
// ReadMSGOSS reads a .msg file and returns the email data
|
||||
func (a *App) ReadMSGOSS(filePath string) (*internal.EmailData, error) {
|
||||
return internal.OSSReadMsgFile(filePath)
|
||||
return internal.ReadMsgFile(filePath)
|
||||
}
|
||||
|
||||
// ShowOpenFileDialog shows the file open dialog for EML files
|
||||
@@ -497,3 +497,10 @@ func (a *App) OpenDefaultAppsSettings() error {
|
||||
cmd := exec.Command("cmd", "/c", "start", "ms-settings:defaultapps")
|
||||
return cmd.Start()
|
||||
}
|
||||
|
||||
func (a *App) IsDebuggerRunning() bool {
|
||||
if a == nil {
|
||||
return false
|
||||
}
|
||||
return utils.IsDebugged()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user