diff --git a/backend/services/system_service.go b/backend/services/system_service.go index 2be30b2..453df81 100644 --- a/backend/services/system_service.go +++ b/backend/services/system_service.go @@ -63,7 +63,7 @@ func (s *systemService) SelectFile(title string) (resp types.JSResp) { func (s *systemService) loopWindowEvent() { var fullscreen, maximised, minimised, normal bool - var width, height, posx, posy int + var width, height int var dirty bool for { time.Sleep(300 * time.Millisecond) @@ -84,12 +84,6 @@ func (s *systemService) loopWindowEvent() { dirty = true } - if x, y := runtime.WindowGetPosition(s.ctx); x != posx || y != posy { - // window position changed - posx, posy = x, y - dirty = true - } - if m := runtime.WindowIsMaximised(s.ctx); m != maximised { maximised = m dirty = true @@ -118,7 +112,6 @@ func (s *systemService) loopWindowEvent() { if !fullscreen && !minimised { // save window size and position Preferences().SaveWindowSize(width, height, maximised) - Preferences().SaveWindowPosition(posx, posy) } } } diff --git a/backend/utils/string/convert.go b/backend/utils/string/convert.go index 12ebd8c..437f913 100644 --- a/backend/utils/string/convert.go +++ b/backend/utils/string/convert.go @@ -132,10 +132,11 @@ func autoDecode(str string) (value, resultDecode string) { return } - if value, ok = decodeBrotli(str); ok { - resultDecode = types.DECODE_BROTLI - return - } + // FIXME: skip decompress with brotli due to incorrect format checking + //if value, ok = decodeBrotli(str); ok { + // resultDecode = types.DECODE_BROTLI + // return + //} } } diff --git a/frontend/src/components/content_value/ContentToolbar.vue b/frontend/src/components/content_value/ContentToolbar.vue index 38c2902..1ef7eda 100644 --- a/frontend/src/components/content_value/ContentToolbar.vue +++ b/frontend/src/components/content_value/ContentToolbar.vue @@ -78,7 +78,7 @@ const onCopyKey = () => {
- +