瀏覽代碼

UI: Update text for custom browser dock menu items manually

Instead of relying on the dock's having their window title already set
for the menu items to be updated, let's just manually update the menu
item text ourselves when updating the item.
Ryan Foster 2 年之前
父節點
當前提交
25b97df6eb
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      UI/window-extra-browsers.cpp

+ 1 - 0
UI/window-extra-browsers.cpp

@@ -180,6 +180,7 @@ void ExtraBrowsersModel::UpdateItem(Item &item)
 
 	if (main->extraBrowserDockNames[idx] != item.title) {
 		main->extraBrowserDockNames[idx] = item.title;
+		dock->toggleViewAction()->setText(item.title);
 	}
 
 	if (main->extraBrowserDockTargets[idx] != item.url) {