diff --git a/IDE/src/IDEApp.bf b/IDE/src/IDEApp.bf index 691ef222..5c0344eb 100644 --- a/IDE/src/IDEApp.bf +++ b/IDE/src/IDEApp.bf @@ -10675,6 +10675,14 @@ namespace IDE squiggleScale = (float)Math.Round(squiggleScale); mSquiggleImage.Scale(squiggleScale); mCircleImage.Scale(DarkTheme.sScale); + + mMainWindow?.SetMinimumSize(GS!(480), GS!(360)); + + /*for (var window in gApp.mWindows) + { + + window.SetMinimumSize(GS!()); + }*/ } void HandleWindowClosed(BFWindow window) @@ -11130,6 +11138,16 @@ namespace IDE for (var project in mWorkspace.mProjects) { + let options = GetCurProjectOptions(project); + if (options == null) + continue; + if (!options.mBuildOptions.mCleanCmds.IsEmpty) + { + if (mBuildContext == null) + mBuildContext = new BuildContext(); + mBuildContext.QueueProjectCustomBuildCommands(project, "", .Always, options.mBuildOptions.mCleanCmds); + } + // Force running the "if files changed" commands project.mForceCustomCommands = true; project.mNeedsTargetRebuild = true; @@ -11141,9 +11159,6 @@ namespace IDE List projectFiles = scope .(); defer ClearAndDeleteItems(projectFiles); - let options = GetCurProjectOptions(project); - if (options == null) - continue; GetTargetPaths(project, mPlatformName, workspaceOptions, options, projectFiles); for (let filePath in projectFiles) diff --git a/IDE/src/ui/CallStackPanel.bf b/IDE/src/ui/CallStackPanel.bf index 30cea0c6..f72d3347 100644 --- a/IDE/src/ui/CallStackPanel.bf +++ b/IDE/src/ui/CallStackPanel.bf @@ -170,8 +170,8 @@ namespace IDE.ui public override void RehupScale(float oldScale, float newScale) { - base.RehupScale(oldScale, newScale); SetScaleData(); + base.RehupScale(oldScale, newScale); } public override void Serialize(StructuredData data) diff --git a/IDE/src/ui/ClassViewPanel.bf b/IDE/src/ui/ClassViewPanel.bf index 19abbec7..344a9d91 100644 --- a/IDE/src/ui/ClassViewPanel.bf +++ b/IDE/src/ui/ClassViewPanel.bf @@ -477,8 +477,8 @@ namespace IDE.ui public override void RehupScale(float oldScale, float newScale) { - base.RehupScale(oldScale, newScale); SetScaleData(); + base.RehupScale(oldScale, newScale); } public override void FocusForKeyboard() diff --git a/IDE/src/ui/ProjectPanel.bf b/IDE/src/ui/ProjectPanel.bf index 97e36744..92981b83 100644 --- a/IDE/src/ui/ProjectPanel.bf +++ b/IDE/src/ui/ProjectPanel.bf @@ -23,6 +23,12 @@ namespace IDE.ui public bool mSortDirty; public bool mWantsRehup; + public override void RehupScale(float oldScale, float newScale) + { + base.RehupScale(oldScale, newScale); + Utils.SnapScale(ref mLabelOffset, newScale / oldScale); + } + protected override float GetLabelOffset() { return mLabelOffset; @@ -165,6 +171,7 @@ namespace IDE.ui public override void RehupScale(float oldScale, float newScale) { + mListView.mOpenButtonX = GS!(4); base.RehupScale(oldScale, newScale); SetScaleData(); } diff --git a/IDE/src/ui/WatchPanel.bf b/IDE/src/ui/WatchPanel.bf index 70bb186c..13530b79 100644 --- a/IDE/src/ui/WatchPanel.bf +++ b/IDE/src/ui/WatchPanel.bf @@ -1624,8 +1624,8 @@ namespace IDE.ui public override void RehupScale(float oldScale, float newScale) { - base.RehupScale(oldScale, newScale); SetScaleData(); + base.RehupScale(oldScale, newScale); } public void Serialize(StructuredData data, bool includeItems)