🐛 Fixed markdown preview issue
This commit is contained in:
@@ -3,7 +3,8 @@ package constant
|
||||
// VOIDRAFT_MAIN_WINDOW_NAME is the name of the main window of the Voidcraft client.
|
||||
const VOIDRAFT_MAIN_WINDOW_NAME = "voidraft-main-window"
|
||||
|
||||
const VOIDRAFT_WINDOW_TITLE = "voidraft"
|
||||
const VOIDRAFT_APP_NAME = "voidraft"
|
||||
const VOIDRAFT_APP_DESCRIPTION = "An elegant text snippet recording tool designed for developers."
|
||||
|
||||
const VOIDRAFT_WINDOW_WIDTH = 700
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ func (wh *WindowHelper) FocusMainWindow() bool {
|
||||
func (wh *WindowHelper) AutoShowMainWindow() {
|
||||
window := wh.MustGetMainWindow()
|
||||
if window.IsVisible() {
|
||||
window.Hide()
|
||||
window.Focus()
|
||||
} else {
|
||||
window.Show()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user