mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Disable custom title bar popup on Linux (#4478)
This commit is contained in:
@@ -203,38 +203,40 @@ export class MenubarControl extends Disposable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private detectAndRecommendCustomTitlebar(): void {
|
private detectAndRecommendCustomTitlebar(): void {
|
||||||
if (!isLinux) {
|
// {{SQL CARBON EDIT}} - Disable the custom titlebar recommendation
|
||||||
return;
|
// if (!isLinux) {
|
||||||
}
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
if (!this.storageService.getBoolean('menubar/electronFixRecommended', StorageScope.GLOBAL, false)) {
|
// if (!this.storageService.getBoolean('menubar/electronFixRecommended', StorageScope.GLOBAL, false)) {
|
||||||
if (this.currentMenubarVisibility === 'hidden' || this.currentTitlebarStyleSetting === 'custom') {
|
// if (this.currentMenubarVisibility === 'hidden' || this.currentTitlebarStyleSetting === 'custom') {
|
||||||
// Issue will not arise for user, abort notification
|
// // Issue will not arise for user, abort notification
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
const message = nls.localize('menubar.electronFixRecommendation', "If you experience hard to read text in the menu bar, we recommend trying out the custom title bar.");
|
// const message = nls.localize('menubar.electronFixRecommendation', "If you experience hard to read text in the menu bar, we recommend trying out the custom title bar.");
|
||||||
this.notificationService.prompt(Severity.Info, message, [
|
// this.notificationService.prompt(Severity.Info, message, [
|
||||||
{
|
// {
|
||||||
label: nls.localize('goToSetting', "Open Settings"),
|
// label: nls.localize('goToSetting', "Open Settings"),
|
||||||
run: () => {
|
// run: () => {
|
||||||
return this.preferencesService.openGlobalSettings(undefined, { query: 'window.titleBarStyle' });
|
// return this.preferencesService.openGlobalSettings(undefined, { query: 'window.titleBarStyle' });
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
label: nls.localize('moreInfo', "More Info"),
|
// label: nls.localize('moreInfo', "More Info"),
|
||||||
run: () => {
|
// run: () => {
|
||||||
window.open('https://go.microsoft.com/fwlink/?linkid=2038566');
|
// window.open('https://go.microsoft.com/fwlink/?linkid=2038566');
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
label: nls.localize('neverShowAgain', "Don't Show Again"),
|
// label: nls.localize('neverShowAgain', "Don't Show Again"),
|
||||||
run: () => {
|
// run: () => {
|
||||||
this.storageService.store('menubar/electronFixRecommended', true, StorageScope.GLOBAL);
|
// this.storageService.store('menubar/electronFixRecommended', true, StorageScope.GLOBAL);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
]);
|
// ]);
|
||||||
}
|
// }
|
||||||
|
// {{SQL CARBON EDIT}} - End
|
||||||
}
|
}
|
||||||
|
|
||||||
private registerListeners(): void {
|
private registerListeners(): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user