Remove duplicate font size buttons
All checks were successful
build-windows-exe / build (push) Successful in 2m5s
All checks were successful
build-windows-exe / build (push) Successful in 2m5s
This commit is contained in:
@@ -228,8 +228,6 @@ type guiApp struct {
|
||||
tabSettings uintptr
|
||||
btnTopMost uintptr
|
||||
btnAutoUnmute uintptr
|
||||
btnFontDown uintptr
|
||||
btnFontUp uintptr
|
||||
activeTab string
|
||||
topMost bool
|
||||
autoUnmuteOnLeave bool
|
||||
@@ -586,8 +584,6 @@ func runNativeGUI(initialTab string) error {
|
||||
rightTitle, _ := syscall.UTF16PtrFromString("")
|
||||
topMostTitle, _ := syscall.UTF16PtrFromString("Top most")
|
||||
autoUnmuteTitle, _ := syscall.UTF16PtrFromString("Leave unmute")
|
||||
fontDownTitle, _ := syscall.UTF16PtrFromString("A-")
|
||||
fontUpTitle, _ := syscall.UTF16PtrFromString("A+")
|
||||
browseTitle, _ := syscall.UTF16PtrFromString("参照")
|
||||
saveTitle, _ := syscall.UTF16PtrFromString("保存")
|
||||
toolbarTitle, _ := syscall.UTF16PtrFromString("")
|
||||
@@ -635,8 +631,6 @@ func runNativeGUI(initialTab string) error {
|
||||
app.settingsPaneHwnd, _, _ = createWindowEx.Call(0, uintptr(unsafe.Pointer(paneClassName)), uintptr(unsafe.Pointer(settingsPaneTitle)), paneStyle, 0, contentTop, windowWidth, settingsPaneHeight, hwnd, idLog+1, hInstance, 0)
|
||||
app.btnTopMost, _, _ = createWindowEx.Call(0, uintptr(unsafe.Pointer(buttonClass)), uintptr(unsafe.Pointer(topMostTitle)), buttonStyle, leftPaneWidth+32, contentTop+86, 140, 30, hwnd, 3005, hInstance, 0)
|
||||
app.btnAutoUnmute, _, _ = createWindowEx.Call(0, uintptr(unsafe.Pointer(buttonClass)), uintptr(unsafe.Pointer(autoUnmuteTitle)), buttonStyle, leftPaneWidth+32, contentTop+132, 180, 30, hwnd, 3008, hInstance, 0)
|
||||
app.btnFontDown, _, _ = createWindowEx.Call(0, uintptr(unsafe.Pointer(buttonClass)), uintptr(unsafe.Pointer(fontDownTitle)), buttonStyle, leftPaneWidth+32, contentTop+178, 52, 30, hwnd, 3006, hInstance, 0)
|
||||
app.btnFontUp, _, _ = createWindowEx.Call(0, uintptr(unsafe.Pointer(buttonClass)), uintptr(unsafe.Pointer(fontUpTitle)), buttonStyle, leftPaneWidth+92, contentTop+178, 52, 30, hwnd, 3007, hInstance, 0)
|
||||
exportDirTitle, _ := syscall.UTF16PtrFromString("")
|
||||
exportDirRect := settingsHistoryExportDirRect()
|
||||
app.settingsExportDirEdit, _, _ = createWindowEx.Call(
|
||||
@@ -1216,7 +1210,7 @@ func refreshGUI(setWindowText *syscall.LazyProc, app *guiApp, reloadData bool) {
|
||||
if app.settingsPaneHwnd != 0 {
|
||||
showWindowProc.Call(app.settingsPaneHwnd, swHideControl)
|
||||
}
|
||||
for _, hwnd := range []uintptr{app.btnTopMost, app.btnAutoUnmute, app.btnFontDown, app.btnFontUp} {
|
||||
for _, hwnd := range []uintptr{app.btnTopMost, app.btnAutoUnmute} {
|
||||
if hwnd != 0 {
|
||||
showWindowProc.Call(hwnd, swHideControl)
|
||||
}
|
||||
@@ -1257,7 +1251,7 @@ func refreshSettingsControls(showWindowProc, setWindowPosProc *syscall.LazyProc,
|
||||
return
|
||||
}
|
||||
app.lastSettingsVisible = true
|
||||
for _, hwnd := range []uintptr{app.btnTopMost, app.btnAutoUnmute, app.btnFontDown, app.btnFontUp} {
|
||||
for _, hwnd := range []uintptr{app.btnTopMost, app.btnAutoUnmute} {
|
||||
if hwnd != 0 {
|
||||
showWindowProc.Call(hwnd, swHideControl)
|
||||
}
|
||||
@@ -1281,7 +1275,7 @@ func refreshSettingsControls(showWindowProc, setWindowPosProc *syscall.LazyProc,
|
||||
if app.settingsPaneHwnd != 0 {
|
||||
showWindowProc.Call(app.settingsPaneHwnd, swHideControl)
|
||||
}
|
||||
for _, hwnd := range []uintptr{app.btnTopMost, app.btnAutoUnmute, app.btnFontDown, app.btnFontUp, app.settingsExportDirEdit, app.settingsExportCustomEdit, app.settingsExportBrowseBtn, app.settingsExportCustomSaveBtn} {
|
||||
for _, hwnd := range []uintptr{app.btnTopMost, app.btnAutoUnmute, app.settingsExportDirEdit, app.settingsExportCustomEdit, app.settingsExportBrowseBtn, app.settingsExportCustomSaveBtn} {
|
||||
if hwnd != 0 {
|
||||
showWindowProc.Call(hwnd, swHideControl)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user