mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35: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:
@@ -80,8 +80,7 @@ MediaView::MediaView() : TWidget(App::wnd())
|
||||
, _radial(animation(this, &MediaView::step_radial))
|
||||
, _lastAction(-st::mvDeltaFromLastAction, -st::mvDeltaFromLastAction)
|
||||
, _a_state(animation(this, &MediaView::step_state))
|
||||
, _dropdown(this, st::mvDropdown)
|
||||
, _saveMsgOpacity(0) {
|
||||
, _dropdown(this, st::mvDropdown) {
|
||||
TextCustomTagsMap custom;
|
||||
custom.insert(QChar('c'), qMakePair(textcmdStartLink(1), textcmdStopLink()));
|
||||
_saveMsgText.setRichText(st::medviewSaveMsgFont, lang(lng_mediaview_saved), _textDlgOptions, custom);
|
||||
@@ -100,7 +99,9 @@ MediaView::MediaView() : TWidget(App::wnd())
|
||||
|
||||
hide();
|
||||
createWinId();
|
||||
setWindowState(Qt::WindowFullScreen);
|
||||
if (cPlatform() == dbipWindows) {
|
||||
setWindowState(Qt::WindowFullScreen);
|
||||
}
|
||||
|
||||
_saveMsgUpdater.setSingleShot(true);
|
||||
connect(&_saveMsgUpdater, SIGNAL(timeout()), this, SLOT(updateImage()));
|
||||
|
Reference in New Issue
Block a user