mirror of https://github.com/Nheko-Reborn/nheko
This is causing probably more issues nowadays than it fixes. Qt should be adding those menus for us now, so let's remove it and see, what breaks!pull/1825/head
parent
cc4ace3c12
commit
048af42780
@ -1,14 +0,0 @@ |
||||
// SPDX-FileCopyrightText: Nheko Contributors
|
||||
//
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#pragma once |
||||
|
||||
#include <QMenuBar> |
||||
|
||||
class MacHelper |
||||
{ |
||||
public: |
||||
static void showEmojiWindow(); |
||||
static void initializeMenus(); |
||||
}; |
@ -1,26 +0,0 @@ |
||||
#include "MacHelper.h" |
||||
|
||||
#include <Cocoa/Cocoa.h> |
||||
#include <Foundation/Foundation.h> |
||||
#include <Foundation/NSString.h> |
||||
#include <QCoreApplication> |
||||
|
||||
void |
||||
MacHelper::showEmojiWindow() |
||||
{ |
||||
NSApplication *theNSApplication = [NSApplication sharedApplication]; |
||||
[theNSApplication orderFrontCharacterPalette:nil]; |
||||
} |
||||
|
||||
void |
||||
MacHelper::initializeMenus() |
||||
{ |
||||
NSApplication *theNSApplication = [NSApplication sharedApplication]; |
||||
|
||||
NSArray<NSMenuItem *> *menus = [theNSApplication mainMenu].itemArray; |
||||
NSUInteger size = menus.count; |
||||
for (NSUInteger i = 0; i < size; i++) { |
||||
NSMenuItem *item = [menus objectAtIndex:i]; |
||||
[item setTitle:@"Edit"]; |
||||
} |
||||
} |
Loading…
Reference in new issue