mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Creating MediaView after the main window. That way the main window is
created with the right size even with FullScreen flag for MediaView. Using FullScreen flag only on Windows (or Dock auto hides on OS X).
This commit is contained in:
@@ -455,7 +455,7 @@ void MainWindow::firstShow() {
|
||||
#else
|
||||
trayIconMenu = new QMenu(this);
|
||||
#endif
|
||||
QString notificationItem = lang(cDesktopNotify()
|
||||
auto notificationItem = lang(cDesktopNotify()
|
||||
? lng_disable_notifications_from_tray : lng_enable_notifications_from_tray);
|
||||
|
||||
if (cPlatform() == dbipWindows || cPlatform() == dbipMac || cPlatform() == dbipMacOld) {
|
||||
@@ -469,9 +469,10 @@ void MainWindow::firstShow() {
|
||||
trayIconMenu->addAction(lang(lng_quit_from_tray), this, SLOT(quitFromTray()))->setEnabled(true);
|
||||
}
|
||||
psUpdateWorkmode();
|
||||
|
||||
psFirstShow();
|
||||
updateTrayMenu();
|
||||
|
||||
_mediaView = new MediaView();
|
||||
}
|
||||
|
||||
QWidget *MainWindow::filedialogParent() {
|
||||
@@ -667,8 +668,6 @@ void MainWindow::setupMain(bool anim, const MTPUser *self) {
|
||||
fixOrder();
|
||||
|
||||
updateTitleStatus();
|
||||
|
||||
_mediaView = new MediaView();
|
||||
}
|
||||
|
||||
void MainWindow::updateUnreadCounter() {
|
||||
|
Reference in New Issue
Block a user