mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Startup: improved lagg on startup with a large number of fonts.
This commit is contained in:
@@ -31,7 +31,6 @@ Item {
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
updateTabsModel();
|
||||
// Restore sidebar state
|
||||
sidebarExpanded = ShellState.getSettingsSidebarExpanded();
|
||||
}
|
||||
@@ -591,13 +590,13 @@ Item {
|
||||
spacing: Style.marginS
|
||||
|
||||
NIcon {
|
||||
icon: root.tabsModel[currentTabIndex]?.icon
|
||||
icon: root.tabsModel[currentTabIndex]?.icon ?? ""
|
||||
color: Color.mPrimary
|
||||
pointSize: Style.fontSizeXXL
|
||||
}
|
||||
|
||||
NText {
|
||||
text: I18n.tr(root.tabsModel[currentTabIndex]?.label) || ""
|
||||
text: root.tabsModel[root.currentTabIndex]?.label ? I18n.tr(root.tabsModel[root.currentTabIndex].label) : ""
|
||||
pointSize: Style.fontSizeXL
|
||||
font.weight: Style.fontWeightBold
|
||||
color: Color.mPrimary
|
||||
|
||||
Reference in New Issue
Block a user