Skip to content

Commit 1971f9e

Browse files
committed
systray is useless in this func
1 parent f7d9772 commit 1971f9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

systray/systray_real.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (s *Systray) start() {
8686
case <-mConfig.ClickedCh:
8787
_ = open.Start(s.currentConfigFilePath.String())
8888
case <-mRmCrashes.ClickedCh:
89-
s.RemoveCrashes()
89+
RemoveCrashes()
9090
s.updateMenuItem(mRmCrashes, config.LogsIsEmpty())
9191
case <-mGenCerts.ClickedCh:
9292
cert.GenerateCertificates(config.GetCertificatesDir())
@@ -110,7 +110,7 @@ func (s *Systray) updateMenuItem(item *systray.MenuItem, disable bool) {
110110
}
111111

112112
// RemoveCrashes removes the crash-reports from `logs` folder
113-
func (s *Systray) RemoveCrashes() {
113+
func RemoveCrashes() {
114114
logsDir := config.GetLogsDir()
115115
pathErr := logsDir.RemoveAll()
116116
if pathErr != nil {

0 commit comments

Comments
 (0)