The very basic client app, not adapted for mobiles.
This commit is contained in:
14
client/internal/services/core/mainwindow/tabs.go
Normal file
14
client/internal/services/core/mainwindow/tabs.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package mainwindow
|
||||
|
||||
import (
|
||||
"fyne.io/fyne/v2/container"
|
||||
"fyne.io/fyne/v2/lang"
|
||||
)
|
||||
|
||||
func (m *mainWindow) AddTab(tab *container.TabItem) {
|
||||
if len(m.tabs.Items) == 1 && m.tabs.Items[0].Text == lang.L("window.lorem_ipsum.tab_name") {
|
||||
m.tabs.Remove(m.tabs.Items[0])
|
||||
}
|
||||
|
||||
m.tabs.Append(tab)
|
||||
}
|
Reference in New Issue
Block a user